Files

22 lines
595 B
Docker
Raw Permalink Normal View History

FROM alpine:3.14
ARG TARGETPLATFORM
2024-04-02 23:49:32 +13:00
# Set by build-arg
ARG TAG=v2.2.3
2024-04-02 23:49:32 +13:00
# Strip out the prefix
ENV PLAT=${TARGETPLATFORM//"linux/"/}
WORKDIR /code
2024-04-02 23:49:32 +13:00
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
ENTRYPOINT [ "go-semantic-release" ]