git fetch through plugin
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Nicolai Ort 2023-05-10 19:56:26 +02:00
parent 20844a6d30
commit 93600f223f
Signed by: niggl
GPG Key ID: 13AFA55AF62F269F
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ COPY plugin.sh ./
RUN dos2unix plugin.sh
FROM registry.odit.services/hub/library/node:20.0.0-alpine3.17
RUN apk add curl git jq pandoc --no-cache --update && rm -rf /var/cache/apk/*
RUN apk add curl git openssh patch jq pandoc --no-cache --update && rm -rf /var/cache/apk/*
# add the wrapper which acts as a drone plugin
COPY --from=BUILD /app/plugin.sh /plugin.sh

View File

@ -1,7 +1,7 @@
#!/bin/sh
set -euo pipefail
# git fetch
git fetch --tags
CURRENTTAG=$(git tag --sort=-taggerdate | head -n 1)
PREVIOUSTAG=$(git tag --sort=-taggerdate | head -n 2 | tail -n 1)