exit on newline and tagging with workflow id

This commit is contained in:
miampf 2024-04-25 13:28:26 +02:00
parent 9e354aea64
commit 3f008d1edb
No known key found for this signature in database
GPG Key ID: EF039364B5B6886C

View File

@ -126,7 +126,8 @@ runs:
shell: bash
run: |
if [[ "${{ inputs.cosignPassword }}" == '' || "${{ inputs.cosignPrivateKey }}" == '' ]]; then
echo "::error::e2e test verify requires cosignPassword and cosignPrivateKey to be set." exit 1
echo "::error::e2e test verify requires cosignPassword and cosignPrivateKey to be set."
exit 1
fi
- name: Determine build target
@ -257,7 +258,7 @@ runs:
gcpProjectID: ${{ inputs.gcpProject }}
gcpZone: ${{ inputs.regionZone || 'europe-west3-b' }}
kubernetesVersion: ${{ inputs.kubernetesVersion }}
additionalTags: "run-name=${{ steps.create-prefix.outputs.prefix }}"
additionalTags: "workflow=${{ github.workflow }}"
- name: Login to GCP (Cluster service account)
if: inputs.cloudProvider == 'gcp'