Compare commits

..

2 Commits

Author SHA1 Message Date
0bcede8594 fix(ci): Workaround for alpine sh
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline was successful
ci/woodpecker/pull_request_closed/woodpecker Pipeline was successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/tag/woodpecker Pipeline failed
2024-04-02 23:49:32 +13:00
34589749ba fix(ci): Update YAML config 🔧
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline was successful
ci/woodpecker/pull_request_closed/woodpecker Pipeline was successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/tag/woodpecker Pipeline failed
2024-04-02 23:22:24 +13:00
2 changed files with 16 additions and 6 deletions

View File

@@ -78,8 +78,11 @@ steps:
dockerfile: Dockerfile
push: true
platforms: *platforms
buildargs: ["TAG=${CI_COMMIT_TAG}"]
tags: ["latest", "$CI_COMMIT_TAG"]
buildargs:
- TAG=${CI_COMMIT_TAG}
tags:
- "latest"
- ${CI_COMMIT_TAG}
when:
branch: ${CI_REPO_DEFAULT_BRANCH}
event:

View File

@@ -1,13 +1,20 @@
FROM alpine:3.14
ARG TARGETPLATFORM
# Set by build-arg
ARG TAG=v2.2.3
# Strip out the prefix
ENV PLAT=${TARGETPLATFORM//"linux/"/}
WORKDIR /code
ADD https://hub.cybercinch.nz/cybercinch/go-semantic-release/releases/download/${TAG}/go-semantic-release.linux_${TARGETPLATFORM//"linux/"/}.zip /tmp
RUN unzip /tmp/go-semantic-release.linux_${TARGETPLATFORM//"linux/"/}.zip && \
mv /tmp/go-semantic-release.linux_${TARGETPLATFORM//"linux/"/} /usr/local/bin/go-semantic-release && \
rm -f /tmp/go-semantic-release.linux_${TARGETPLATFORM//"linux/"/}.zip
ADD https://hub.cybercinch.nz/cybercinch/go-semantic-release/releases/download/${TAG}/go-semantic-release.linux_${PLAT}.zip /tmp
RUN apk add --no-cache unzip && \
unzip -d /tmp /tmp/go-semantic-release.linux_${PLAT}.zip && \
ls && \
ls /tmp && \
mv /tmp/go-semantic-release.linux_${PLAT} /usr/local/bin/go-semantic-release && \
rm -f /tmp/go-semantic-release.linux_${PLAT}.zip
USER 1000