Skip to content

Commit

Permalink
ci: use given image if set (#2655)
Browse files Browse the repository at this point in the history
Signed-off-by: Moritz Sanft <[email protected]>
  • Loading branch information
msanft authored Nov 28, 2023
1 parent ca89a31 commit 03c5692
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/actions/find_latest_image/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ inputs:
outputs:
image:
description: "Image reference to be used in the cluster."
value: ${{ steps.find-latest-image.outputs.output }}${{ steps.check-input.outputs.image }}
value: ${{ steps.find-latest-image.outputs.output }}${{ steps.use-given-image.outputs.output }}
isDebugImage:
description: "Whether the image is a debug image."
value: ${{ steps.isDebugImage.outputs.isDebugImage }}
Expand Down Expand Up @@ -52,6 +52,13 @@ runs:
ref: ${{ inputs.ref }}
stream: ${{ inputs.stream }}

- name: Use given image
id: use-given-image
if: inputs.imageVersion != ''
shell: bash
run: |
echo "output=${{ inputs.imageVersion }}" | tee -a "$GITHUB_OUTPUT"
- name: Is debug image?
id: isDebugImage
shell: bash
Expand Down

0 comments on commit 03c5692

Please sign in to comment.