Skip to content

Commit 1eb6431

Browse files
authored
Merge pull request #381 from gatewayd-io/multi-arch
fix: Resolve GitHub Actions bug for multi-architecture builds
2 parents e12b05f + 883505e commit 1eb6431

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

.github/workflows/release.yaml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
packages: write
1717
steps:
1818
- name: Checkout code
19-
uses: actions/checkout@v3
19+
uses: actions/checkout@v4
2020
with:
2121
fetch-depth: 0
2222
- name: Set up Go 1.21
@@ -30,28 +30,32 @@ jobs:
3030
run: make build-release
3131
- name: Build and release Linux packages
3232
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
3337
- name: Sign in to Docker Hub
34-
uses: docker/login-action@v2
38+
uses: docker/login-action@v3
3539
with:
3640
username: ${{ secrets.DOCKERHUB_USERNAME }}
3741
password: ${{ secrets.DOCKERHUB_TOKEN }}
3842
- name: Sign in to GitHub Container Registry
39-
uses: docker/login-action@v2
43+
uses: docker/login-action@v3
4044
with:
4145
registry: ghcr.io
4246
username: ${{ github.actor }}
4347
password: ${{ secrets.GITHUB_TOKEN }}
4448
- name: Build and push Docker image
45-
uses: docker/build-push-action@v2
49+
uses: docker/build-push-action@v5
4650
with:
4751
context: .
52+
platforms: linux/amd64,linux/arm64
4853
push: true
4954
tags: |
5055
gatewaydio/gatewayd:${{ github.ref_name }}
5156
gatewaydio/gatewayd:latest
5257
ghcr.io/gatewayd-io/gatewayd:${{ github.ref_name }}
5358
ghcr.io/gatewayd-io/gatewayd:latest
54-
platforms: linux/amd64,linux/arm64
5559
- name: Scan Docker image with Syft and generate SBOM
5660
run: |
5761
go install github.com/anchore/syft/cmd/syft@latest

0 commit comments

Comments
 (0)