Skip to content

Commit

Permalink
Fix Docker tags #2
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas Ledez committed Oct 4, 2023
1 parent 0d1869c commit a8cf702
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/python-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,11 @@ jobs:
uses: docker/metadata-action@v5
with:
images: cgwire/cgwire-tests
tags: |
type=raw,value=latest,enable={{is_default_branch}}
type=sha,prefix={{branch}}-
type=ref,event=branch
type=ref,event=tag
- name: Build and push Docker image
if: github.event_name != 'pull_request'
uses: docker/build-push-action@v5
Expand All @@ -73,8 +78,5 @@ jobs:
file: ./Dockerfile
platforms: linux/amd64,linux/arm64
push: ${{ github.event_name != 'pull_request' }}
tags:
- latest
- ${{ steps.meta.outputs.tags }}
- ${{ github.sha }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

0 comments on commit a8cf702

Please sign in to comment.