From 63d4e30f0e55226a85782cf866bf58822bf4e3f9 Mon Sep 17 00:00:00 2001 From: Diego Sampaio Date: Mon, 20 Jun 2022 19:08:04 -0300 Subject: [PATCH] Use correct Docker image name on publish --- .github/workflows/build_and_test.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index aee8ed321157..aca03463336e 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -852,7 +852,7 @@ jobs: echo "DOCKER_TAG: $DOCKER_TAG" # tag and push the specific tag version - docker tag $GH_IMAGE_NAME $IMAGE_NAME:$DOCKER_TAG + docker tag ${{ steps.gh-docker.outputs.gh-image-name }} $IMAGE_NAME:$DOCKER_TAG docker push $IMAGE_NAME:$DOCKER_TAG if [[ $GITHUB_REF == refs/tags/* ]]; then @@ -866,11 +866,11 @@ jobs: if [[ $RELEASE == 'latest' ]]; then if [[ '${{ needs.release-versions.outputs.latest-release }}' == $GITHUB_REF_NAME ]]; then - docker tag $IMAGE_NAME:$DOCKER_TAG $IMAGE_NAME:$RELEASE + docker tag ${{ steps.gh-docker.outputs.gh-image-name }} $IMAGE_NAME:$RELEASE docker push $IMAGE_NAME:$RELEASE fi else - docker tag $IMAGE_NAME:$DOCKER_TAG $IMAGE_NAME:$RELEASE + docker tag ${{ steps.gh-docker.outputs.gh-image-name }} $IMAGE_NAME:$RELEASE docker push $IMAGE_NAME:$RELEASE fi fi