From f319f849adfb82d19f9b23416a0fa3bffa123af9 Mon Sep 17 00:00:00 2001 From: Nollymar Longa Date: Tue, 18 Jun 2024 16:41:59 -0500 Subject: [PATCH] fix(CICD): Removing extra line from the list of returned tags (#28935) Refs: #28934 ### Proposed Changes The value returned for the list of docker tags was new line separated causing the json message to break when it was inserted. --- .github/actions/deploy-artifact-docker/action.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/actions/deploy-artifact-docker/action.yml b/.github/actions/deploy-artifact-docker/action.yml index 472acab4d3ca..73f32f375318 100644 --- a/.github/actions/deploy-artifact-docker/action.yml +++ b/.github/actions/deploy-artifact-docker/action.yml @@ -60,7 +60,7 @@ inputs: outputs: tags: description: "The tags that were used to build the image" - value: ${{ steps.meta.outputs.tags }} + value: ${{ steps.convert_tags.outputs.space_separated_tags }} runs: using: "composite" steps: @@ -87,7 +87,6 @@ runs: tar -xvf docker-build.tar -C ${CONTEXT_TMP_PATH} echo "docker_context=${CONTEXT_TMP_PATH}" >> $GITHUB_OUTPUT fi - shell: bash - name: Set Common Vars shell: bash @@ -131,7 +130,6 @@ runs: echo "type=raw,value=${RESULT},enable=true" >> $GITHUB_ENV echo "type=raw,value=latest,enable=${enable_latest}" >> $GITHUB_ENV echo "EOF" >> $GITHUB_ENV - - name: Docker.io login uses: docker/login-action@v3.0.0 with: @@ -162,6 +160,11 @@ runs: tags: ${{ env.FULL_TAGS_OUTPUT }} if: success() + - name: Convert tags to space-separated string + id: convert_tags + shell: bash + run: echo "space_separated_tags=$(echo '${{ steps.meta.outputs.tags }}' | tr '\n' ' ')" >> $GITHUB_OUTPUT + - name: Debug Docker Metadata shell: bash run: | @@ -177,9 +180,6 @@ runs: platforms: ${{ inputs.docker_platforms }} driver-opts: | image=moby/buildkit:v0.12.2 - - - - name: Build/Push Docker Image uses: docker/build-push-action@v5 with: