File tree 2 files changed +11
-3
lines changed
2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -125,7 +125,7 @@ jobs:
125
125
if : startsWith(github.ref, 'refs/tags/v')
126
126
with :
127
127
version : latest
128
- args : release --release-notes=notes.md --clean --skip- validate
128
+ args : release --release-notes=notes.md --clean --skip= validate
129
129
env :
130
130
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
131
131
- name : Generate SLSA metadata
Original file line number Diff line number Diff line change 1
- FROM golang:1.23-alpine as builder
1
+ ARG GO_VERSION=1.23
2
+ ARG XX_VERSION=1.4.0
3
+
4
+ FROM --platform=$BUILDPLATFORM tonistiigi/xx:${XX_VERSION} AS xx
5
+ FROM --platform=$BUILDPLATFORM golang:${GO_VERSION}-alpine as builder
6
+
7
+ # copy build utilities
8
+ COPY --from=xx / /
2
9
3
10
ARG TARGETPLATFORM
4
11
ARG REVISON
@@ -17,7 +24,8 @@ COPY cmd/ cmd/
17
24
COPY pkg/ pkg/
18
25
19
26
# build
20
- RUN CGO_ENABLED=0 go build \
27
+ ENV CGO_ENABLED=0
28
+ RUN xx-go build \
21
29
-ldflags "-s -w -X github.com/fluxcd/flagger/pkg/version.REVISION=${REVISON}" \
22
30
-a -o flagger ./cmd/flagger
23
31
You can’t perform that action at this time.
0 commit comments