chore: fix workflow
This commit is contained in:
parent
ceeb2b2308
commit
85688dac89
@ -9,7 +9,7 @@ jobs:
|
||||
os: ubuntu-latest # [ubuntu-latest, macos-latest, windows-latest]
|
||||
|
||||
name: Cargo install on ubuntu-latest
|
||||
runs-on: ubuntu-latest/rust
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
CARGO_TERM_COLOR: always
|
||||
KUBE_CONFIG: ${{ secrets.KUBE_CONFIG }}
|
||||
@ -23,6 +23,23 @@ jobs:
|
||||
- name: Check out repository code
|
||||
uses: actions/checkout@v3
|
||||
#run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner."
|
||||
- name: Install Rust
|
||||
run: |
|
||||
export RUSTUP_HOME=/usr/share/rust/.rustup
|
||||
export CARGO_HOME=/usr/share/rust/.cargo
|
||||
printf "\n\t🐋 Installing dependencies 🐋\t\n"
|
||||
apt-get -yq update
|
||||
apt-get -yq install build-essential llvm libssl-dev
|
||||
printf "\n\t🐋 Installing Rust 🐋\t\n"
|
||||
curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain=stable --profile=minimal
|
||||
source "${CARGO_HOME}/env"
|
||||
rustup component add rustfmt clippy
|
||||
printf "\n\t🐋 Installed RUSTUP 🐋\t\n"
|
||||
rustup -V
|
||||
printf "\n\t🐋 Installed CARGO 🐋\t\n"
|
||||
cargo -V
|
||||
printf "\n\t🐋 Installed RUSTC 🐋\t\n"
|
||||
rustc -V
|
||||
- name: Install kubectl
|
||||
run: |
|
||||
OS="$(uname | tr '[:upper:]' '[:lower:]')"
|
||||
@ -30,7 +47,6 @@ jobs:
|
||||
apt-get update
|
||||
apt-get install ca-certificates
|
||||
update-ca-certificates
|
||||
type cargo
|
||||
curl -L "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/$OS/$ARCH/kubectl" -o /usr/local/bin/kubectl
|
||||
[ -r "/usr/local/bin/kubectl" ] && chmod +x /usr/local/bin/kubectl
|
||||
echo "${{ secrets.KUBE_CONFIG }}" | base64 -d > $KUBECONFIG
|
||||
|
Loading…
Reference in New Issue
Block a user