Skip to content

Commit

Permalink
Add Docker builds for arm/v6, arm/v7 and arm64. (#198)
Browse files Browse the repository at this point in the history
Signed-off-by: Krasi Georgiev <[email protected]>
  • Loading branch information
krasi-georgiev authored Aug 20, 2021
1 parent 9975ada commit 0663255
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,11 @@ jobs:
run: |
aws s3 sync dist/upload s3://builds.loraserver.io/chirpstack-gateway-bridge
# Runs on pull request to ensure the docker build works,
# but pushes only on commits to master and on PRs.
docker:
needs: test
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/v')
steps:
-
name: Checkout
Expand All @@ -57,7 +58,7 @@ jobs:
uses: docker/metadata-action@v3
with:
images: |
chirpstack/chirpstack-gateway-bridge
chirpstack/${{ github.event.repository.name }}
tags: |
type=semver,pattern={{version}}
type=semver,pattern={{major}}
Expand All @@ -70,6 +71,7 @@ jobs:
uses: docker/setup-buildx-action@v1
-
name: Login to DockerHub
if: startsWith(github.ref, 'refs/tags/v')
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
Expand All @@ -79,8 +81,8 @@ jobs:
id: docker_build
uses: docker/build-push-action@v2
with:
context: .
push: true
platforms: linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v6
push: ${{ startsWith(github.ref, 'refs/tags/v') }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
-
Expand Down

0 comments on commit 0663255

Please sign in to comment.