Skip to content
Prev Previous commit
Next Next commit
Improve image-builder selection
  • Loading branch information
KacperMalachowski committed Mar 5, 2025
commit 8399084bd87c6116fbe34c2f5ecf675a4304c468
5 changes: 2 additions & 3 deletions .github/workflows/image-builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,8 @@ jobs:
WORKFLOW_REF_REGEX=^kyma-project/test-infra/.github/workflows/image-builder-test.yml@refs/heads/main$/m

# Allow only the test workflow to use the image-builder image from the input
if [[ ! "${{ github.workflow_ref }}" =~ $WORKFLOW_REF_REGEX ]] && [[ -n "${{ inputs.image-builder-image }}" ]]; then
echo "WARNING: Only the test workflow can use the image-builder image from the input."
else
if [[ "${{ github.workflow_ref }}" =~ $WORKFLOW_REF_REGEX ]] && [[ -n "${{ inputs.image-builder-image }}" ]]; then
echo "WARNING: Using image builder's image provided by user!"
echo "IMAGE_BUILDER_IMAGE=${{ inputs.image-builder-image }}" >> $GITHUB_ENV
fi
continue-on-error: true
Expand Down