File tree 3 files changed +23
-4
lines changed
3 files changed +23
-4
lines changed Original file line number Diff line number Diff line change 27
27
push : false
28
28
tags : rancher/hardened-crictl:${{ env.TAG }}-amd64
29
29
file : Dockerfile
30
+ build-args : |
31
+ TAG=${{ env.TAG }}
30
32
31
33
- name : Run Trivy vulnerability scanner
32
34
uses : aquasecurity/trivy-action@0.21.0
68
70
file : Dockerfile
69
71
outputs : type=docker
70
72
platforms : linux/arm64
73
+ build-args : |
74
+ TAG=${{ env.TAG }}
Original file line number Diff line number Diff line change 3
3
types : [published]
4
4
5
5
permissions :
6
- contents : read
6
+ contents : read
7
+
8
+ env :
9
+ GITHUB_ACTION_TAG : ${{ github.ref_name }}
7
10
8
11
jobs :
9
12
push-multiarch :
15
18
- name : Check out code
16
19
uses : actions/checkout@v4
17
20
21
+ - name : Set the TAG value
22
+ id : get-TAG
23
+ run : |
24
+ echo "$(make -s log | grep TAG)" >> "$GITHUB_ENV"
25
+
18
26
- name : Set up QEMU
19
27
uses : docker/setup-qemu-action@v3
20
28
42
50
tags : rancher/hardened-crictl:${{ github.event.release.tag_name }}
43
51
file : Dockerfile
44
52
platforms : linux/amd64, linux/arm64
53
+ build-args : |
54
+ TAG=${{ env.TAG }}
Original file line number Diff line number Diff line change @@ -14,7 +14,11 @@ BUILD_META=-build$(shell TZ=UTC date +%Y%m%d)
14
14
ORG ?= rancher
15
15
PKG ?= github.com/kubernetes-sigs/cri-tools
16
16
SRC ?= github.com/kubernetes-sigs/cri-tools
17
- TAG ?= v1.26.1$(BUILD_META )
17
+ TAG ?= ${GITHUB_ACTION_TAG}
18
+
19
+ ifeq ($(TAG ) ,)
20
+ TAG := v1.26.1$(BUILD_META )
21
+ endif
18
22
19
23
ifeq (,$(filter % $(BUILD_META ) ,$(TAG ) ) )
20
24
$(error TAG needs to end with build metadata : $(BUILD_META ) )
@@ -44,12 +48,13 @@ image-push:
44
48
image-scan :
45
49
trivy --severity $(SEVERITIES ) --no-progress --ignore-unfixed $(ORG ) /hardened-crictl:$(TAG )
46
50
47
- PHONY : log
51
+ . PHONY : log
48
52
log :
49
53
@echo " ARCH=$( ARCH) "
50
- @echo " TAG=$( TAG) "
54
+ @echo " TAG=$( TAG: $( BUILD_META ) = ) "
51
55
@echo " ORG=$( ORG) "
52
56
@echo " PKG=$( PKG) "
53
57
@echo " SRC=$( SRC) "
54
58
@echo " BUILD_META=$( BUILD_META) "
55
59
@echo " UNAME_M=$( UNAME_M) "
60
+ @echo " GOLANG_VERSION=$( GOLANG_VERSION) "
You can’t perform that action at this time.
0 commit comments