File tree 3 files changed +5
-1
lines changed
3 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -132,6 +132,8 @@ jobs:
132
132
tags : ${{ steps.meta.outputs.tags }}
133
133
labels : ${{ steps.meta.outputs.labels }}
134
134
push : ${{ github.ref_protected }}
135
+ build-args : |
136
+ VERSION=v${{ steps.semantic.outputs.release-version }}
135
137
136
138
auto-merge :
137
139
name : Auto-merge
Original file line number Diff line number Diff line change @@ -45,6 +45,7 @@ docker:
45
45
docker build \
46
46
-t k3se:latest \
47
47
-t k3se:$(VERSION ) \
48
+ --build-arg VERSION=$(VERSION ) \
48
49
-f build/package/Dockerfile .
49
50
50
51
.PHONY : clean
Original file line number Diff line number Diff line change @@ -8,7 +8,8 @@ RUN go mod download
8
8
9
9
# Copy source files and build application.
10
10
COPY . /app
11
- RUN make && mv bin/* /app/bin/k3se
11
+ ARG VERSION
12
+ RUN VERSION=${VERSION} make -B && mv bin/* /app/bin/k3se
12
13
13
14
# Create minimal container image.
14
15
FROM gcr.io/distroless/base:nonroot AS run
You can’t perform that action at this time.
0 commit comments