You've already forked go-semantic-release
fix(ci): Updated architecture types to align docker image. 🔧
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
19
Dockerfile
19
Dockerfile
@@ -1,20 +1,13 @@
|
||||
FROM golang:1.20
|
||||
|
||||
WORKDIR /code
|
||||
|
||||
COPY . /code/
|
||||
|
||||
RUN GOOS=linux \
|
||||
GOARCH=amd64 \
|
||||
CGO_ENABLED=0 \
|
||||
go build -o build/go-semantic-release.linux_x86_64 -ldflags "-w -s --X main.version=`go-semantic-release next`" \
|
||||
./cmd/go-semantic-release/
|
||||
|
||||
FROM alpine:3.14
|
||||
ARG TARGETPLATFORM
|
||||
ARG TAG=v2.2.3
|
||||
|
||||
WORKDIR /code
|
||||
|
||||
COPY ./build/go-semantic-release.linux_x86_64 /usr/local/bin/go-semantic-release
|
||||
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
|
||||
|
||||
USER 1000
|
||||
|
||||
|
||||
Reference in New Issue
Block a user