Skip to content

Commit

Permalink
tag images correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
Ian-Nara committed Aug 7, 2024
1 parent 180bf35 commit 1af7892
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/actions/update_operator_version/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ inputs:
version_number_input:
description: If set, the version number will not be incremented and the given number will be used.
default: ''
image_tag_suffix:
description: Suffix to apply to the docker image tag
default: ${{ env.ENCLAVE_PROTOCOL }}


outputs:
new_version:
Expand All @@ -17,7 +21,7 @@ outputs:
description: Whether to create a release
value: ${{ steps.checkRelease.outputs.is_release }}
image_tag:
description: The tag to use for the docker image for eks
description: The tag to use for the docker image
value: ${{ steps.updatePom.outputs.image_tag }}

runs:
Expand Down Expand Up @@ -86,7 +90,7 @@ runs:
new_version=${{ steps.version.outputs.new_version }}
sed -i "0,/$current_version/s/$current_version/$new_version/" pom.xml
echo "Version number updated from $current_version to $new_version"
echo "image_tag=${{ steps.version.outputs.new_version }}-eks-nitro" >> $GITHUB_OUTPUT
echo "image_tag=${{ steps.version.outputs.new_version }}-${{ inputs.image_tag_suffix }}" >> $GITHUB_OUTPUT
- name: Commit pom.xml and version.json
if: ${{ inputs.version_number_input == '' && steps.checkRelease.outputs.is_release != 'true' }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ jobs:
with:
release_type: ${{ inputs.release_type }}
version_number_input: ${{ inputs.version_number_input }}
image_tag_suffix: eks-nitro

outputs:
new_version: ${{ steps.update_version.outputs.new_version }}
Expand Down

0 comments on commit 1af7892

Please sign in to comment.