Skip to content

Commit 2ec377c

Browse files
committed
Update workflow.
1 parent 845fe36 commit 2ec377c

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

.github/workflows/main.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
dist:
4141
needs: tests
4242
runs-on: ubuntu-latest
43-
if: startsWith(github.ref, 'refs/tags/v')
43+
if: github.event_name != 'pull_request'
4444
steps:
4545
-
4646
name: Checkout
@@ -70,7 +70,7 @@ jobs:
7070
-
7171
name: Docker meta
7272
id: meta
73-
uses: docker/metadata-action@v3
73+
uses: docker/metadata-action@v5
7474
with:
7575
images: |
7676
chirpstack/${{ github.event.repository.name }}
@@ -80,23 +80,22 @@ jobs:
8080
type=semver,pattern={{major}}.{{minor}}
8181
-
8282
name: Set up QEMU
83-
uses: docker/setup-qemu-action@v1
83+
uses: docker/setup-qemu-action@v3
8484
-
8585
name: Set up Docker Buildx
86-
uses: docker/setup-buildx-action@v1
86+
uses: docker/setup-buildx-action@v3
8787
-
8888
name: Login to DockerHub
89-
uses: docker/login-action@v1
89+
uses: docker/login-action@v3
9090
with:
9191
username: ${{ secrets.DOCKERHUB_USERNAME }}
9292
password: ${{ secrets.DOCKERHUB_TOKEN }}
9393
-
9494
name: Build and push
9595
id: docker_build
96-
uses: docker/build-push-action@v2
96+
uses: docker/build-push-action@v6
9797
with:
9898
context: .
99-
push: ${{ startsWith(github.ref, 'refs/tags/v') }}
10099
platforms: linux/arm64
101100
tags: ${{ steps.meta.outputs.tags }}
102101
labels: ${{ steps.meta.outputs.labels }}

0 commit comments

Comments
 (0)