mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-10-01 01:36:09 -04:00
ci: fix build-ko action bash
Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
This commit is contained in:
parent
a274ac8a7c
commit
d2cdc85cf7
12
.github/actions/build_ko/action.yml
vendored
12
.github/actions/build_ko/action.yml
vendored
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user