From 685b653d14250b5f9f558f4fe0f42198b57dc63f Mon Sep 17 00:00:00 2001 From: Evan Read <61214924+eread@users.noreply.github.com> Date: Thu, 5 Dec 2024 23:02:45 +1000 Subject: [PATCH] Allow Docker pushes on release branches (#1568) --- .github/workflows/docker.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index d17763244e..7370478517 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -94,7 +94,9 @@ jobs: context: . file: ${{ env.DOCKERFILE }} platforms: ${{ env.DOCKER_PLATFORMS }} - push: ${{ github.event_name != 'pull_request' && github.actor != 'dependabot[bot]' }} + push: ${{ (github.event_name != 'pull_request' && + github.actor != 'dependabot[bot]') || + startsWith(github.ref, 'lychee-v') }} tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} @@ -104,7 +106,9 @@ jobs: context: . file: ${{ env.DOCKERFILE_ALPINE }} platforms: ${{ env.DOCKER_PLATFORMS }} - push: ${{ github.event_name != 'pull_request' && github.actor != 'dependabot[bot]' }} + push: ${{ (github.event_name != 'pull_request' && + github.actor != 'dependabot[bot]') || + startsWith(github.ref, 'lychee-v') }} tags: ${{ steps.meta-alpine.outputs.tags }} labels: ${{ steps.meta-alpine.outputs.labels }}