From: Cooper Lees Date: Tue, 20 Dec 2022 02:08:13 +0000 (-0800) Subject: Do not move docker `latest_release` tag for Pre-Releases (#3461) X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/9ce75726fcf1f3a2617e873d925384fd6b876dcb?hp=cd9fef8bab3a39dfba494f1917e4158faba439f9 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 --- 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: .