Skip to content

Commit

Permalink
Fix Docker workflow (#94)
Browse files Browse the repository at this point in the history
  • Loading branch information
rob93c authored Oct 15, 2023
2 parents 577ff3f + b216c0c commit d178490
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
rob93c/christmas-greeter
tags: |
type=raw,value=latest,enable={{is_default_branch}}
type=ref,event=branch,enable=${{ github.ref != github.event.repository.default_branch }}
type=ref,event=branch,enable=${{ github.ref != 'refs/heads/master' }}
type=ref,event=pr
- name: Upload Docker image
Expand All @@ -52,6 +52,6 @@ jobs:
- name: Delete Docker tag
if: github.event.pull_request.merged
run: |
tag_to_delete="pr-${{github.event.issue.number}}"
tag_to_delete="pr-${{ github.event.pull_request.number }}"
docker rmi rob93c/christmas-greeter:$tag_to_delete
echo "The tag $tag_to_delete has been deleted"

0 comments on commit d178490

Please sign in to comment.