From 9ce75726fcf1f3a2617e873d925384fd6b876dcb Mon Sep 17 00:00:00 2001 From: Cooper Lees Date: Mon, 19 Dec 2022 18:08:13 -0800 Subject: [PATCH 1/1] 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 --- .github/workflows/docker.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index a3106d0..855186f 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -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: . -- 2.39.5