ci: fix build-ko action bash

Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
This commit is contained in:
Paul Meyer 2023-02-24 11:13:57 +01:00
parent a274ac8a7c
commit d2cdc85cf7

View File

@ -69,27 +69,27 @@ runs:
if [[ "${{ github.ref_name }}" == "${{ github.event.repository.default_branch }}" ]]; then if [[ "${{ github.ref_name }}" == "${{ github.event.repository.default_branch }}" ]]; then
tags="latest" tags="latest"
else: else
tags="${{ github.sha }}" tags="${{ github.sha }}"
fi fi
if [ -n "${{ inputs.pushTag }}" ]; then if [[ -n "${{ inputs.pushTag }}" ]]; then
if [ -n "${tags}" ]; then if [[ -n "${tags}" ]]; then
tags="${tags},${{ inputs.pushTag }}" tags="${tags},${{ inputs.pushTag }}"
else else
tags="${{ inputs.pushTag }}" tags="${{ inputs.pushTag }}"
fi fi
fi fi
if [ -n "${{ steps.pseudo-version.outputs.pseudoVersion }}" ]; then if [[ -n "${{ steps.pseudo-version.outputs.pseudoVersion }}" ]]; then
if [ -n "${tags}" ]; then if [[ -n "${tags}" ]]; then
tags="${tags},${{ steps.pseudo-version.outputs.pseudoVersion }}" tags="${tags},${{ steps.pseudo-version.outputs.pseudoVersion }}"
else else
tags="${{ steps.pseudo-version.outputs.pseudoVersion }}" tags="${{ steps.pseudo-version.outputs.pseudoVersion }}"
fi fi
fi fi
if [ "${{ inputs.generateKoSBOM }}" == "false" ]; then if [[ "${{ inputs.generateKoSBOM }}" == "false" ]]; then
sbom="--sbom=none" sbom="--sbom=none"
fi fi