diff --git a/.drone.yml b/.drone.yml index 1759f35..53bc3d2 100644 --- a/.drone.yml +++ b/.drone.yml @@ -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 diff --git a/Dockerfile b/Dockerfile index af8b60a..1b4c9fc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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`" \