File tree Expand file tree Collapse file tree 3 files changed +1
-12
lines changed Expand file tree Collapse file tree 3 files changed +1
-12
lines changed Original file line number Diff line number Diff line change @@ -59,13 +59,10 @@ jobs:
59
59
provenance : false
60
60
build-args : |
61
61
APP_VERSION=dev-build.${{ steps.vars.outputs.short_sha }}
62
- TARGETOS=${{ matrix.os }}
63
- TARGETARCH=${{ matrix.arch }}
64
62
push : false
65
63
load : true
66
64
tags : ${{ steps.meta.outputs.tags }}
67
65
labels : ${{ steps.meta.outputs.labels }}
68
- platforms : linux/amd64
69
66
cache-from : type=gha
70
67
cache-to : type=gha,mode=max
71
68
89
86
provenance : false
90
87
build-args : |
91
88
APP_VERSION=dev-build.${{ steps.vars.outputs.short_sha }}
92
- TARGETOS=${{ matrix.os }}
93
- TARGETARCH=${{ matrix.arch }}
94
89
push : ${{ github.event_name != 'pull_request' }}
95
90
tags : ${{ steps.meta.outputs.tags }}
96
91
labels : ${{ steps.meta.outputs.labels }}
97
- platforms : linux/amd64
98
92
cache-from : type=gha
99
93
cache-to : type=gha,mode=max
Original file line number Diff line number Diff line change 50
50
provenance : false
51
51
build-args : |
52
52
APP_VERSION=${{ github.ref_name }}
53
- TARGETOS=${{ matrix.os }}
54
- TARGETARCH=${{ matrix.arch }}
55
53
push : ${{ startsWith(github.ref, 'refs/tags/') }}
56
54
tags : ${{ steps.meta.outputs.tags }}
57
55
labels : ${{ steps.meta.outputs.labels }}
Original file line number Diff line number Diff line change 2
2
FROM golang:1.24.5@sha256:14fd8a55e59a560704e5fc44970b301d00d344e45d6b914dda228e09f359a088 AS build-stage
3
3
4
4
ARG APP_VERSION=dev
5
- ARG TARGETOS=linux
6
- ARG TARGETARCH=amd64
7
5
8
6
# Set destination for COPY
9
7
WORKDIR /app
@@ -22,8 +20,7 @@ COPY . ./
22
20
# Set build environment
23
21
ENV GOCACHE=/root/.cache/go-build \
24
22
CGO_ENABLED=0 \
25
- GOOS=${TARGETOS} \
26
- GOARCH=${TARGETARCH}
23
+ GOOS=linux
27
24
28
25
# Build and strip binary
29
26
RUN --mount=type=cache,target=/go/pkg/mod/ \
You can’t perform that action at this time.
0 commit comments