Skip to content

Commit

Permalink
fix: multiline output/input
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Buchleitner <[email protected]>
  • Loading branch information
mabunixda committed Dec 6, 2024
1 parent 375efd0 commit 6941242
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,26 +94,25 @@ jobs:
IMAGE_NAME="${repo}/${name}"
IMAGES=$(cat << EOI
name=ghcr.io/${IMAGE_NAME},enable=true
name=quay.io/${IMAGE_NAME},enable=$( [[ -n "***" ]] && echo "true" || echo "false" )
name=docker.io/${IMAGE_NAME},enable=$( [[ -n "" ]] && echo "true" || echo "false" )
EOI
)
TAGS=$(cat <<EOI
type=semver,pattern={{version}},value=${{ needs.pre-commit.outputs.version }}
type=schedule,pattern=nightly
type=ref,enable=true,priority=600,prefix=pr-,suffix=,event=pr
EOI
)
echo 'tags<<EOF' >> $GITHUB_OUTPUT
echo ${TAGS} >> $GITHUB_OUTPUT
echo "type=semver,pattern={{version}},value=${{ needs.pre-commit.outputs.version }}" >> $GITHUB_OUTPUT
echo "type=schedule,pattern=nightly" >> $GITHUB_OUTPUT
echo "type=ref,enable=true,priority=600,prefix=pr-,suffix=,event=pr" >> $GITHUB_OUTPUT
echo 'EOF' >> $GITHUB_OUTPUT
echo 'images<<EOF' >> $GITHUB_OUTPUT
echo ${IMAGES} >> $GITHUB_OUTPUT
echo "name=ghcr.io/${IMAGE_NAME},enable=true" >> $GITHUB_OUTPUT
echo "name=quay.io/${IMAGE_NAME},enable=$( [[ -n "***" ]] && echo "true" || echo "false" )" >> $GITHUB_OUTPUT
echo "name=docker.io/${IMAGE_NAME},enable=$( [[ -n "" ]] && echo "true" || echo "false" )" >> $GITHUB_OUTPUT
echo 'EOF' >> $GITHUB_OUTPUT
- name: Extract metadata (tags, labels) for Docker
Expand Down

0 comments on commit 6941242

Please sign in to comment.