Skip to content

Commit

Permalink
Merge pull request #54 from cscetbon/fix-push-docker-images
Browse files Browse the repository at this point in the history
  • Loading branch information
cscetbon authored Aug 3, 2022
2 parents fc18f87 + 2b9e5b8 commit 030a33b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/tests-and-docker-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:

not-missing-manifests:
runs-on: ubuntu-latest
if: ${{ !startsWith(github.ref, 'refs/tags/') }}
if: ${{ github.ref_type == 'branch' }}
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
Expand Down Expand Up @@ -113,10 +113,10 @@ jobs:
context: .
file: docker/${{ matrix.image }}/Dockerfile
tags: ghcr.io/cscetbon/${{ matrix.image }}:${{ env.IMAGE }}
push: ${{ env.IMAGE == 'master' }}
push: ${{ env.IMAGE == 'master' || github.ref_type == 'tag' }}

- name: Tag Docker image as latest
if: ${{ startsWith(github.ref, 'refs/tags/') }}
if: ${{ github.ref_type == 'tag' }}
uses: docker/[email protected]
with:
context: .
Expand Down

0 comments on commit 030a33b

Please sign in to comment.