Skip to content

Commit 9ce7572

Browse files
authored
Do not move docker latest_release tag for Pre-Releases (#3461)
* 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 #3453 * Make it prettier - TIL we format our yaml
1 parent cd9fef8 commit 9ce7572

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/docker.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,9 @@ jobs:
4444
tags: pyfound/black:latest,pyfound/black:${{ env.GIT_TAG }}
4545

4646
- name: Build and push latest_release tag
47-
if: ${{ github.event_name == 'release' && github.event.action == 'published' }}
47+
if:
48+
${{ github.event_name == 'release' && github.event.action == 'published' &&
49+
!github.event.release.prerelease }}
4850
uses: docker/build-push-action@v3
4951
with:
5052
context: .

0 commit comments

Comments
 (0)