test
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Evan Reichard 2024-01-22 17:52:48 -05:00
parent b49e0d19e9
commit b20121b996
2 changed files with 5 additions and 1 deletions

View File

@ -24,7 +24,7 @@ steps:
- name: fetch tags - name: fetch tags
image: alpine/git image: alpine/git
commands: commands:
- git fetch --tags - git fetch --tags --force
# Publish docker image # Publish docker image
- name: publish docker - name: publish docker

View File

@ -12,6 +12,10 @@ RUN mkdir -p /opt/antholume
WORKDIR /src WORKDIR /src
COPY . . COPY . .
# Test
RUN git log --oneline | head
RUN git describe --tags
# 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`" \