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
This commit is contained in:
parent
cd9fef8bab
commit
9ce75726fc
4
.github/workflows/docker.yml
vendored
4
.github/workflows/docker.yml
vendored
@ -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: .
|
||||
|
Loading…
Reference in New Issue
Block a user