File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 61
61
type=semver,pattern={{version}}
62
62
type=raw,value=latest
63
63
64
- - name : Build and push
64
+ - name : Build and push Docker image (tagged and latest) to GitHub Container Registry
65
65
if : ${{ startsWith(github.ref, 'refs/tags/') }}
66
66
uses : docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0
67
67
with :
Original file line number Diff line number Diff line change 1
1
ARG ALPINE_VERSION=3.22.0
2
2
3
- FROM golang:1.24-alpine AS builder
3
+ FROM --platform=$BUILDPLATFORM golang:1.24-alpine AS builder
4
4
5
5
WORKDIR /build
6
6
@@ -9,7 +9,7 @@ COPY go.mod go.sum ./
9
9
RUN go mod download && go mod verify
10
10
11
11
COPY . .
12
- RUN go build -o unregistry ./cmd/unregistry
12
+ RUN GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -o unregistry ./cmd/unregistry
13
13
14
14
15
15
# Unregistry in Docker-in-Docker image for e2e tests.
You can’t perform that action at this time.
0 commit comments