Skip to content

Commit

Permalink
action: allow to specify release repository
Browse files Browse the repository at this point in the history
allow to specify the repository from which the release is downloaded, to
allow the action to work with different forks of the CLI

Signed-off-by: Gilberto Bertin <[email protected]>
  • Loading branch information
jibi authored and tklauser committed Nov 17, 2023
1 parent fe21f47 commit 8557afc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion action.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: 'install-cilium-cli'
description: 'Install Cilium CLI'
inputs:
repository:
description: 'Repository from which the release is downloaded'
default: 'cilium/cilium-cli'
release-version:
description: 'Cilium CLI release version'
ci-version:
Expand Down Expand Up @@ -59,7 +62,7 @@ runs:
if: ${{ steps.build-cli.outputs.path == '' && inputs.release-version != '' && inputs.ci-version == '' }}
shell: bash
run: |
curl -sSL --remote-name-all https://github.com/cilium/cilium-cli/releases/download/${{ inputs.release-version }}/cilium-linux-amd64.tar.gz{,.sha256sum}
curl -sSL --remote-name-all https://github.com/${{ inputs.repository }}/releases/download/${{ inputs.release-version }}/cilium-linux-amd64.tar.gz{,.sha256sum}
sha256sum --check cilium-linux-amd64.tar.gz.sha256sum
tar xzvfC cilium-linux-amd64.tar.gz /tmp
sudo mv /tmp/cilium ${{ inputs.binary-dir }}/${{ inputs.binary-name }}
Expand Down

0 comments on commit 8557afc

Please sign in to comment.