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
|
||||
tags="latest"
|
||||
else:
|
||||
else
|
||||
tags="${{ github.sha }}"
|
||||
fi
|
||||
|
||||
if [ -n "${{ inputs.pushTag }}" ]; then
|
||||
if [ -n "${tags}" ]; then
|
||||
if [[ -n "${{ inputs.pushTag }}" ]]; then
|
||||
if [[ -n "${tags}" ]]; then
|
||||
tags="${tags},${{ inputs.pushTag }}"
|
||||
else
|
||||
tags="${{ inputs.pushTag }}"
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ -n "${{ steps.pseudo-version.outputs.pseudoVersion }}" ]; then
|
||||
if [ -n "${tags}" ]; then
|
||||
if [[ -n "${{ steps.pseudo-version.outputs.pseudoVersion }}" ]]; then
|
||||
if [[ -n "${tags}" ]]; then
|
||||
tags="${tags},${{ steps.pseudo-version.outputs.pseudoVersion }}"
|
||||
else
|
||||
tags="${{ steps.pseudo-version.outputs.pseudoVersion }}"
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ "${{ inputs.generateKoSBOM }}" == "false" ]; then
|
||||
if [[ "${{ inputs.generateKoSBOM }}" == "false" ]]; then
|
||||
sbom="--sbom=none"
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user