Skip to content

Commit

Permalink
GitHub Actions: fix set up eve version step to work with no eve_img
Browse files Browse the repository at this point in the history
Signed-off-by: Pavel Abramov <uncle.decart@gmail.com>
  • Loading branch information
uncleDecart committed Nov 24, 2023
1 parent 37210bb commit 1e7a7d9
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/actions/setup-environment/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,17 @@ runs:
shell: bash
working-directory: "./eden"
- name: Setup eve version
if: ${{ inputs.eve_image != '' }} and contains(${{ inputs.eve_image }}, ":" )
run: |
image=${{ inputs.eve_image }}
eve_pr_registry=$(echo "$image" | cut -d ':' -f 1)
eve_pr=$(echo "$image" | cut -d ':' -f 2 | cut -d "-" -f1)
./eden config set default --key=eve.registry --value="$eve_pr_registry"
./eden config set default --key=eve.tag --value="$eve_pr"
if [[ -n "$image" && "$image" == *:* ]]; then
echo "Setting up eve image ${image}"
eve_pr_registry=$(echo "$image" | cut -d ':' -f 1)
eve_pr=$(echo "$image" | cut -d ':' -f 2 | cut -d "-" -f1)
./eden config set default --key=eve.registry --value="$eve_pr_registry"
./eden config set default --key=eve.tag --value="$eve_pr"
else
echo "Skipping setting up eve image ${image}"
fi
shell: bash
working-directory: "./eden"
- name: Setup ext4
Expand Down

0 comments on commit 1e7a7d9

Please sign in to comment.