File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -43,10 +43,11 @@ jobs:
4343 run : |
4444 aws s3 sync dist/upload s3://builds.loraserver.io/chirpstack-gateway-bridge
4545
46+ # Runs on pull request to ensure the docker build works,
47+ # but pushes only on commits to master and on PRs.
4648 docker :
4749 needs : test
4850 runs-on : ubuntu-latest
49- if : startsWith(github.ref, 'refs/tags/v')
5051 steps :
5152 -
5253 name : Checkout
5758 uses : docker/metadata-action@v3
5859 with :
5960 images : |
60- chirpstack/chirpstack-gateway-bridge
61+ chirpstack/${{ github.event.repository.name }}
6162 tags : |
6263 type=semver,pattern={{version}}
6364 type=semver,pattern={{major}}
7071 uses : docker/setup-buildx-action@v1
7172 -
7273 name : Login to DockerHub
74+ if : startsWith(github.ref, 'refs/tags/v')
7375 uses : docker/login-action@v1
7476 with :
7577 username : ${{ secrets.DOCKERHUB_USERNAME }}
7981 id : docker_build
8082 uses : docker/build-push-action@v2
8183 with :
82- context : .
83- push : true
84+ platforms : linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v6
85+ push : ${{ startsWith(github.ref, 'refs/tags/v') }}
8486 tags : ${{ steps.meta.outputs.tags }}
8587 labels : ${{ steps.meta.outputs.labels }}
8688 -
You can’t perform that action at this time.
0 commit comments