This commit is contained in:
parent
b49e0d19e9
commit
b20121b996
@ -24,7 +24,7 @@ steps:
|
||||
- name: fetch tags
|
||||
image: alpine/git
|
||||
commands:
|
||||
- git fetch --tags
|
||||
- git fetch --tags --force
|
||||
|
||||
# Publish docker image
|
||||
- name: publish docker
|
||||
|
@ -12,6 +12,10 @@ RUN mkdir -p /opt/antholume
|
||||
WORKDIR /src
|
||||
COPY . .
|
||||
|
||||
# Test
|
||||
RUN git log --oneline | head
|
||||
RUN git describe --tags
|
||||
|
||||
# Compile
|
||||
RUN go build \
|
||||
-ldflags "-X reichard.io/antholume/config.version=`git describe --tags`" \
|
||||
|
Loading…
Reference in New Issue
Block a user