Skip to content

Commit

Permalink
Do not move docker latest_release tag for Pre-Releases (psf#3461)
Browse files Browse the repository at this point in the history
* Do not move docker `latest_release` tag for Pre-Releases

- When we do a pre-release lets not move the latest_release tag
  - This tag should only move on official real releases

Fixes psf#3453

* Make it prettier - TIL we format our yaml
  • Loading branch information
cooperlees authored and hugovk committed Jan 16, 2023
1 parent 86bf5ed commit f2e4300
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ 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 f2e4300

Please sign in to comment.