Skip to content

Commit

Permalink
ci: Push docker images only when new tag is pushed
Browse files Browse the repository at this point in the history
... but run the pipeline on release/* branches, so we can verify that
they build before merging to master and tagging.
  • Loading branch information
martinhpedersen committed Oct 18, 2023
1 parent a02a25c commit 5f72812
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ name: docker-push
on:
push:
branches:
- 'docker'
- 'master'
- 'ci-test/*'
- 'release/*'
tags:
- 'v*'

Expand Down Expand Up @@ -37,6 +37,6 @@ jobs:
with:
context: .
platforms: linux/amd64,linux/386,linux/arm64/v8,linux/arm/v7,linux/arm/v6
push: true
push: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

0 comments on commit 5f72812

Please sign in to comment.