-
Notifications
You must be signed in to change notification settings - Fork 467
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
Showing
1 changed file
with
6 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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/[email protected] | ||
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: | ||
|