Skip to content

Commit

Permalink
Merge pull request #381 from gatewayd-io/multi-arch
Browse files Browse the repository at this point in the history
fix: Resolve GitHub Actions bug for multi-architecture builds
  • Loading branch information
mostafa authored Dec 18, 2023
2 parents e12b05f + 883505e commit 1eb6431
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
packages: write
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Go 1.21
Expand All @@ -30,28 +30,32 @@ jobs:
run: make build-release
- name: Build and release Linux packages
run: make build-linux-packages
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Sign in to Docker Hub
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Sign in to GitHub Container Registry
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v2
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: |
gatewaydio/gatewayd:${{ github.ref_name }}
gatewaydio/gatewayd:latest
ghcr.io/gatewayd-io/gatewayd:${{ github.ref_name }}
ghcr.io/gatewayd-io/gatewayd:latest
platforms: linux/amd64,linux/arm64
- name: Scan Docker image with Syft and generate SBOM
run: |
go install github.com/anchore/syft/cmd/syft@latest
Expand Down

0 comments on commit 1eb6431

Please sign in to comment.