Skip to content

Commit

Permalink
action: Prefer CI CLI over released version
Browse files Browse the repository at this point in the history
Then users can keep an existings released version set, and only add the
CI CLI vsn when testing against the latter.

Signed-off-by: Martynas Pumputis <[email protected]>
  • Loading branch information
brb committed Oct 17, 2023
1 parent d509f1a commit 39f658e
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,14 @@ runs:
echo "'release-version' or 'ci-version' has to be specified!"
exit 42
- name: Install Cilium CLI from CI
if: ${{ steps.build-cli.outputs.path == '' && inputs.ci-version != '' }}
shell: bash
run: |
cid=$(docker create quay.io/cilium/cilium-cli-ci:${{ inputs.ci-version }} ls)
docker cp $cid:/usr/local/bin/cilium ${{ inputs.binary-dir }}/${{ inputs.binary-name }}
docker rm $cid
- name: Install Released Cilium CLI
if: ${{ steps.build-cli.outputs.path == '' && inputs.release-version != '' }}
shell: bash
Expand All @@ -61,14 +69,6 @@ runs:
sudo mv /tmp/cilium ${{ inputs.binary-dir }}/${{ inputs.binary-name }}
rm cilium-linux-amd64.tar.gz{,.sha256sum}
- name: Install Cilium CLI from CI
if: ${{ steps.build-cli.outputs.path == '' && inputs.ci-version != '' }}
shell: bash
run: |
cid=$(docker create quay.io/cilium/cilium-cli-ci:${{ inputs.ci-version }} ls)
docker cp $cid:/usr/local/bin/cilium ${{ inputs.binary-dir }}/${{ inputs.binary-name }}
docker rm $cid
- name: Run Cilium CLI Version
shell: bash
run: |
Expand Down

0 comments on commit 39f658e

Please sign in to comment.