Unverified Commit 8bc17e3a authored by Krasimir Georgiev's avatar Krasimir Georgiev Committed by GitHub
Browse files

Add Docker builds for arm/v6, arm/v7 and arm64. (#546)



Signed-off-by: default avatarKrasi Georgiev <8903888+krasi-georgiev@users.noreply.github.com>
parent ad1c90a2
......@@ -43,10 +43,11 @@ jobs:
run: |
aws s3 sync dist/upload s3://builds.loraserver.io/chirpstack-network-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
......@@ -57,7 +58,7 @@ jobs:
uses: docker/metadata-action@v3
with:
images: |
chirpstack/chirpstack-network-server
chirpstack/${{ github.event.repository.name }}
tags: |
type=semver,pattern={{version}}
type=semver,pattern={{major}}
......@@ -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 }}
......@@ -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 }}
-
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment