5
5
workflow_dispatch :
6
6
inputs :
7
7
image_tag :
8
- description : ' Image tag name.'
8
+ description : " Image tag name."
9
9
required : true
10
10
release :
11
11
types :
17
17
runs-on : ubuntu-latest
18
18
steps :
19
19
- name : " Build:checkout"
20
- uses : actions/checkout@v2
20
+ uses : actions/checkout@v4
21
21
- name : " Set image tag name"
22
22
run : |
23
23
if [[ "${{ github.event_name }}" == "workflow_dispatch" ]]; then
@@ -28,38 +28,43 @@ jobs:
28
28
- name : " Check image tag name"
29
29
run : |
30
30
echo "IMAGETAG=${{env.IMAGETAG}}"
31
+ - name : Set up QEMU
32
+ uses : docker/setup-qemu-action@v3
31
33
- name : " Build:buildx"
32
- uses : docker/setup-buildx-action@v1
34
+ uses : docker/setup-buildx-action@v3
33
35
with :
34
36
version : v0.9.1 # Buildx version
35
37
- name : " Build:login"
36
- uses : docker/login-action@v1
38
+ uses : docker/login-action@v3
37
39
with :
38
40
registry : ghcr.io
39
41
username : ${{ github.actor }}
40
42
password : ${{ secrets.GITHUB_TOKEN }}
41
43
- name : " Build:dockerimage"
42
- uses : docker/build-push-action@v2
44
+ uses : docker/build-push-action@v5
43
45
with :
44
46
context : .
45
47
push : true
46
48
file : Dockerfile.controller
47
49
build-args : |
48
50
GO_BUILDER_IMG=golang:1.19
51
+ platforms : linux/amd64,linux/arm64
49
52
tags : ghcr.io/grafana/k6-operator:latest,ghcr.io/grafana/k6-operator:controller-${{env.IMAGETAG}}
50
53
- name : " Build:dockerimage"
51
- uses : docker/build-push-action@v2
54
+ uses : docker/build-push-action@v5
52
55
with :
53
56
context : .
54
57
push : true
55
58
file : Dockerfile.runner
59
+ platforms : linux/amd64,linux/arm64
56
60
tags : ghcr.io/grafana/k6-operator:latest-runner,ghcr.io/grafana/k6-operator:runner-${{env.IMAGETAG}}
57
61
- name : " Build:dockerimage"
58
- uses : docker/build-push-action@v2
62
+ uses : docker/build-push-action@v5
59
63
with :
60
64
context : .
61
65
push : true
62
66
file : Dockerfile.starter
67
+ platforms : linux/amd64,linux/arm64
63
68
tags : ghcr.io/grafana/k6-operator:latest-starter,ghcr.io/grafana/k6-operator:starter-${{env.IMAGETAG}}
64
69
65
70
bundle :
70
75
pull-requests : write
71
76
steps :
72
77
- name : " Checkout code"
73
- uses : actions/checkout@v2
78
+ uses : actions/checkout@v4
74
79
- name : " Set image tag name"
75
80
run : |
76
81
if [[ "${{ github.event_name }}" == "workflow_dispatch" ]]; then
0 commit comments