[fix] docker cicd build
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Evan Reichard 2024-01-20 15:28:53 -05:00
parent f0a2d2cf69
commit 9bd6bf7727
2 changed files with 11 additions and 5 deletions

View File

@ -20,8 +20,14 @@ steps:
cron: cron:
- integration-test - integration-test
# Publish Dev Docker Image # Fetch tags
- name: publish_docker - name: fetch tags
image: alpine/git
commands:
- git fetch --tags
# Publish docker image
- name: publish docker
image: plugins/docker image: plugins/docker
settings: settings:
repo: gitea.va.reichard.io/evan/antholume repo: gitea.va.reichard.io/evan/antholume

View File

@ -5,13 +5,13 @@ RUN apk update && apk add ca-certificates
# Build Image # Build Image
FROM golang:1.21 AS build FROM golang:1.21 AS build
# Create Package Directory
RUN mkdir -p /opt/antholume
# Copy Source # Copy Source
WORKDIR /src WORKDIR /src
COPY . . COPY . .
# Create Package Directory
RUN mkdir -p /opt/antholume
# Compile # Compile
RUN go build \ RUN go build \
-ldflags "-X reichard.io/antholume/config.version=`git describe --tags`" \ -ldflags "-X reichard.io/antholume/config.version=`git describe --tags`" \