mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-06-07 06:03:05 -04:00
E2E: Download external binaries depending on host OS & arch
This commit is contained in:
parent
a1fd971c3c
commit
6df92c127c
3 changed files with 13 additions and 7 deletions
10
.github/actions/build_cli/action.yml
vendored
10
.github/actions/build_cli/action.yml
vendored
|
@ -48,7 +48,7 @@ runs:
|
||||||
else
|
else
|
||||||
cmake ..
|
cmake ..
|
||||||
fi
|
fi
|
||||||
GOOS=${{ inputs.targetOS }} GOARCH=${{ inputs.targetArch }} make -j`nproc` cli
|
GOOS=${{ inputs.targetOS }} GOARCH=${{ inputs.targetArch }} make cli
|
||||||
cp constellation constellation-${{ inputs.targetOS }}-${{ inputs.targetArch }}
|
cp constellation constellation-${{ inputs.targetOS }}-${{ inputs.targetArch }}
|
||||||
echo "$(pwd)" >> $GITHUB_PATH
|
echo "$(pwd)" >> $GITHUB_PATH
|
||||||
export PATH="$PATH:$(pwd)"
|
export PATH="$PATH:$(pwd)"
|
||||||
|
@ -63,9 +63,11 @@ runs:
|
||||||
|
|
||||||
- name: Install Rekor
|
- name: Install Rekor
|
||||||
run: |
|
run: |
|
||||||
curl -sLO https://github.com/sigstore/rekor/releases/download/v0.12.0/rekor-cli-linux-amd64
|
HOSTOS="$(go env GOOS)"
|
||||||
sudo install rekor-cli-linux-amd64 /usr/local/bin/rekor-cli
|
HOSTARCH="$(go env GOARCH)"
|
||||||
rm rekor-cli-linux-amd64
|
curl -sLO https://github.com/sigstore/rekor/releases/download/v0.12.0/rekor-cli-${HOSTOS}-${HOSTARCH}
|
||||||
|
sudo install rekor-cli-${HOSTOS}-${HOSTARCH} /usr/local/bin/rekor-cli
|
||||||
|
rm rekor-cli-${HOSTOS}-${HOSTARCH}
|
||||||
shell: bash
|
shell: bash
|
||||||
working-directory: build
|
working-directory: build
|
||||||
if: ${{ inputs.cosignPublicKey != '' && inputs.cosignPrivateKey != '' && inputs.cosignPassword != '' }}
|
if: ${{ inputs.cosignPublicKey != '' && inputs.cosignPrivateKey != '' && inputs.cosignPassword != '' }}
|
||||||
|
|
|
@ -40,7 +40,9 @@ runs:
|
||||||
steps:
|
steps:
|
||||||
- name: Install kubectl
|
- name: Install kubectl
|
||||||
run: |
|
run: |
|
||||||
curl -sLO https://dl.k8s.io/release/v1.23.0/bin/linux/amd64/kubectl
|
HOSTOS="$(go env GOOS)"
|
||||||
|
HOSTARCH="$(go env GOARCH)"
|
||||||
|
curl -sLO https://dl.k8s.io/release/v1.23.0/bin/{$HOSTOS}/{$HOSTARCH}/kubectl
|
||||||
install kubectl /usr/local/bin
|
install kubectl /usr/local/bin
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
|
|
6
.github/actions/sonobuoy/action.yml
vendored
6
.github/actions/sonobuoy/action.yml
vendored
|
@ -13,8 +13,10 @@ runs:
|
||||||
steps:
|
steps:
|
||||||
- name: Install sonobuoy
|
- name: Install sonobuoy
|
||||||
run: |
|
run: |
|
||||||
curl -sLO https://github.com/vmware-tanzu/sonobuoy/releases/download/v${{ inputs.sonobuoyVersion }}/sonobuoy_${{ inputs.sonobuoyVersion }}_linux_amd64.tar.gz
|
HOSTOS="$(go env GOOS)"
|
||||||
tar -xzf sonobuoy_${{ inputs.sonobuoyVersion }}_linux_amd64.tar.gz
|
HOSTARCH="$(go env GOARCH)"
|
||||||
|
curl -sLO https://github.com/vmware-tanzu/sonobuoy/releases/download/v${{ inputs.sonobuoyVersion }}/sonobuoy_${{ inputs.sonobuoyVersion }}_${HOSTOS}_${HOSTARCH}.tar.gz
|
||||||
|
tar -xzf sonobuoy_${{ inputs.sonobuoyVersion }}_${HOSTOS}_${HOSTARCH}.tar.gz
|
||||||
install sonobuoy /usr/local/bin
|
install sonobuoy /usr/local/bin
|
||||||
shell: bash
|
shell: bash
|
||||||
- name: Sonobuoy version
|
- name: Sonobuoy version
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue