Skip to content

Commit

Permalink
Pin K3s to v1.25.7+k3s1 instead stable channel (#40)
Browse files Browse the repository at this point in the history
* Pin K3s to v1.25.7+k3s1 instead stable channel

Closes #39

* Setup concurrency in Github workflow to cancell in progress jobs on same branches

* Update K9s build artifact to amd64

derailed/k9s#1910

---------

Co-authored-by: Marcin Jasion <mjasion@users.noreply.github.com>
  • Loading branch information
mjasion and mjasion authored Mar 20, 2023
1 parent 211093e commit b3017d5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build-ami.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ on:
paths:
- packer/**
- .github/workflows/build-ami.yml
concurrency:
group: ${{ github.workflow }}-${{ github.ref }} # Cancel in-progress jobs or runs for current workflow
cancel-in-progress: true
permissions:
contents: read
id-token: write
Expand Down
11 changes: 6 additions & 5 deletions packer/setup_root.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,17 @@ set -o pipefail
export DEBIAN_FRONTEND=noninteractive

# Install K3s - script uploaded with packer
INSTALL_K3S_SKIP_START="true" INSTALL_K3S_EXEC="--disable=traefik" K3S_KUBECONFIG_MODE="644" sh /tmp/k3s.sh -
K3S_VERSION=v1.25.7+k3s1
INSTALL_K3S_SKIP_START="true" INSTALL_K3S_EXEC="--disable=traefik" K3S_KUBECONFIG_MODE="644" INSTALL_K3S_VERSION=${K3S_VERSION} sh /tmp/k3s.sh -
echo KUBECONFIG="/etc/rancher/k3s/k3s.yaml" >> /etc/environment

# Install k9s
K9S_VERSION=v0.26.7
K9S_VERSION=v0.27.3
cd /tmp
curl --silent -L https://github.com/derailed/k9s/releases/download/${K9S_VERSION}/k9s_Linux_x86_64.tar.gz -o /tmp/k9s_Linux_x86_64.tar.gz
echo "f774bb75045e361e17a4f267491c5ec66f41db7bffd996859ffb1465420af249 k9s_Linux_x86_64.tar.gz" > /tmp/k9s.sha256
curl --silent -L https://github.com/derailed/k9s/releases/download/${K9S_VERSION}/k9s_Linux_amd64.tar.gz -o /tmp/k9s_Linux_amd64.tar.gz
echo "b0eb5fb0decedbee5b6bd415f72af8ce6135ffb8128f9709bc7adcd5cbfa690b k9s_Linux_amd64.tar.gz" > /tmp/k9s.sha256
sha256sum -c /tmp/k9s.sha256
tar -zxvf /tmp/k9s_Linux_x86_64.tar.gz -C /tmp
tar -zxvf /tmp/k9s_Linux_amd64.tar.gz -C /tmp
mv /tmp/k9s /usr/local/bin/
cd /root

Expand Down

0 comments on commit b3017d5

Please sign in to comment.