16
16
packages : write
17
17
steps :
18
18
- name : Checkout code
19
- uses : actions/checkout@v3
19
+ uses : actions/checkout@v4
20
20
with :
21
21
fetch-depth : 0
22
22
- name : Set up Go 1.21
@@ -30,28 +30,32 @@ jobs:
30
30
run : make build-release
31
31
- name : Build and release Linux packages
32
32
run : make build-linux-packages
33
+ - name : Set up QEMU
34
+ uses : docker/setup-qemu-action@v3
35
+ - name : Set up Docker Buildx
36
+ uses : docker/setup-buildx-action@v3
33
37
- name : Sign in to Docker Hub
34
- uses : docker/login-action@v2
38
+ uses : docker/login-action@v3
35
39
with :
36
40
username : ${{ secrets.DOCKERHUB_USERNAME }}
37
41
password : ${{ secrets.DOCKERHUB_TOKEN }}
38
42
- name : Sign in to GitHub Container Registry
39
- uses : docker/login-action@v2
43
+ uses : docker/login-action@v3
40
44
with :
41
45
registry : ghcr.io
42
46
username : ${{ github.actor }}
43
47
password : ${{ secrets.GITHUB_TOKEN }}
44
48
- name : Build and push Docker image
45
- uses : docker/build-push-action@v2
49
+ uses : docker/build-push-action@v5
46
50
with :
47
51
context : .
52
+ platforms : linux/amd64,linux/arm64
48
53
push : true
49
54
tags : |
50
55
gatewaydio/gatewayd:${{ github.ref_name }}
51
56
gatewaydio/gatewayd:latest
52
57
ghcr.io/gatewayd-io/gatewayd:${{ github.ref_name }}
53
58
ghcr.io/gatewayd-io/gatewayd:latest
54
- platforms : linux/amd64,linux/arm64
55
59
- name : Scan Docker image with Syft and generate SBOM
56
60
run : |
57
61
go install github.com/anchore/syft/cmd/syft@latest
0 commit comments