Skip to content

Commit

Permalink
Do not move docker latest_release tag for Pre-Releases
Browse files Browse the repository at this point in the history
- When we do a pre-release lets not move the latest_release tag
  - This tag should only move on official real releases

Fixes #3453
  • Loading branch information
cooperlees committed Dec 19, 2022
1 parent cd9fef8 commit 50c26c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
tags: pyfound/black:latest,pyfound/black:${{ env.GIT_TAG }}

- name: Build and push latest_release tag
if: ${{ github.event_name == 'release' && github.event.action == 'published' }}
if: ${{ github.event_name == 'release' && github.event.action == 'published' && !github.event.release.prerelease }}
uses: docker/build-push-action@v3
with:
context: .
Expand Down

0 comments on commit 50c26c7

Please sign in to comment.