Skip to content

Commit

Permalink
Add Docker builds for arm/v6, arm/v7 and arm64. (#618)
Browse files Browse the repository at this point in the history
Signed-off-by: Krasi Georgiev <8903888+krasi-georgiev@users.noreply.github.com>
  • Loading branch information
krasi-georgiev authored Aug 17, 2021
1 parent 9b15f04 commit f6b052a
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,11 @@ jobs:
run: |
aws s3 sync dist/upload s3://builds.loraserver.io/chirpstack-application-server
# 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 @@ -64,8 +65,7 @@ jobs:
id: meta
uses: docker/metadata-action@v3
with:
images: |
chirpstack/chirpstack-application-server
images: chirpstack/${{ github.event.repository.name }}
tags: |
type=semver,pattern={{version}}
type=semver,pattern={{major}}
Expand All @@ -78,6 +78,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 @@ -87,8 +88,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 f6b052a

Please sign in to comment.