git fetch through plugin
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
20844a6d30
commit
93600f223f
@ -5,7 +5,7 @@ COPY plugin.sh ./
|
|||||||
RUN dos2unix plugin.sh
|
RUN dos2unix plugin.sh
|
||||||
|
|
||||||
FROM registry.odit.services/hub/library/node:20.0.0-alpine3.17
|
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
|
# add the wrapper which acts as a drone plugin
|
||||||
COPY --from=BUILD /app/plugin.sh /plugin.sh
|
COPY --from=BUILD /app/plugin.sh /plugin.sh
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
# git fetch
|
git fetch --tags
|
||||||
|
|
||||||
CURRENTTAG=$(git tag --sort=-taggerdate | head -n 1)
|
CURRENTTAG=$(git tag --sort=-taggerdate | head -n 1)
|
||||||
PREVIOUSTAG=$(git tag --sort=-taggerdate | head -n 2 | tail -n 1)
|
PREVIOUSTAG=$(git tag --sort=-taggerdate | head -n 2 | tail -n 1)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user