You've already forked docker-go-semantic-release
feat: Initial commit 🎉
This commit is contained in:
12
Dockerfile
Normal file
12
Dockerfile
Normal file
@@ -0,0 +1,12 @@
|
||||
FROM golang:1.20
|
||||
ARG TARGETPLATFORM
|
||||
ARG GOSEMREL_VERSION=v2.2.12
|
||||
# Strip out the prefix
|
||||
ENV PLAT=${TARGETPLATFORM//"linux/"/}
|
||||
|
||||
# Grab Copy of go-semantic-release
|
||||
ADD https://hub.cybercinch.nz/cybercinch/go-semantic-release/releases/download/${GOSEMREL_VERSION}/go-semantic-release.linux_${PLAT}.zip /tmp
|
||||
RUN apt-get update && apt-get install -y --no-recommends unzip && \
|
||||
unzip -d /tmp /tmp/go-semantic-release.linux_${PLAT}.zip && \
|
||||
mv /tmp/go-semantic-release.linux_${PLAT} /usr/local/bin/go-semantic-release && \
|
||||
rm -f /tmp/go-semantic-release.linux_${PLAT}.zip
|
||||
Reference in New Issue
Block a user