From 674630f7b189b1c3f0c6c9a5ac76addb9e810051 Mon Sep 17 00:00:00 2001 From: erenJag <64777133+erenJag@users.noreply.github.com> Date: Mon, 7 Dec 2020 15:44:24 +0100 Subject: [PATCH] trying to fix docker push ci (#519) --- .github/workflows/release_publish_docker-image.yml | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/.github/workflows/release_publish_docker-image.yml b/.github/workflows/release_publish_docker-image.yml index 9e5933729..a9a8b9b47 100644 --- a/.github/workflows/release_publish_docker-image.yml +++ b/.github/workflows/release_publish_docker-image.yml @@ -26,19 +26,12 @@ jobs: VERSION=pr-${{ github.event.number }} fi TAGS="${DOCKER_IMAGE}:${VERSION}" - echo ::set-output name=docker_image::${DOCKER_IMAGE} + if [[ ${{ github.event.action }} == released ]]; then + TAGS=$TAGS,${DOCKER_IMAGE}:latest + fi echo ::set-output name=version::${VERSION} echo ::set-output name=tags::${TAGS} echo ::set-output name=created::$(date -u +'%Y-%m-%dT%H:%M:%SZ') - - - name: Tag Latest - id: prep_tag_latest - if: " github.event.action == 'released' " - run: | - TAGS=${{ steps.prep.outputs.docker_image }}:latest - echo ::set-output name=tags::${TAGS} - echo ::set-output name=version::${{ steps.prep.outputs.version }} - echo ::set-output name=created::$(date -u +'%Y-%m-%dT%H:%M:%SZ') - name: Set up Docker Buildx uses: docker/setup-buildx-action@v1