File tree 1 file changed +6
-4
lines changed
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -43,10 +43,11 @@ jobs:
43
43
run : |
44
44
aws s3 sync dist/upload s3://builds.loraserver.io/chirpstack-gateway-bridge
45
45
46
+ # Runs on pull request to ensure the docker build works,
47
+ # but pushes only on commits to master and on PRs.
46
48
docker :
47
49
needs : test
48
50
runs-on : ubuntu-latest
49
- if : startsWith(github.ref, 'refs/tags/v')
50
51
steps :
51
52
-
52
53
name : Checkout
57
58
uses : docker/metadata-action@v3
58
59
with :
59
60
images : |
60
- chirpstack/chirpstack-gateway-bridge
61
+ chirpstack/${{ github.event.repository.name }}
61
62
tags : |
62
63
type=semver,pattern={{version}}
63
64
type=semver,pattern={{major}}
70
71
uses : docker/setup-buildx-action@v1
71
72
-
72
73
name : Login to DockerHub
74
+ if : startsWith(github.ref, 'refs/tags/v')
73
75
uses : docker/login-action@v1
74
76
with :
75
77
username : ${{ secrets.DOCKERHUB_USERNAME }}
79
81
id : docker_build
80
82
uses : docker/build-push-action@v2
81
83
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') }}
84
86
tags : ${{ steps.meta.outputs.tags }}
85
87
labels : ${{ steps.meta.outputs.labels }}
86
88
-
You can’t perform that action at this time.
0 commit comments