Skip to content

Commit

Permalink
use ubuntu 24.04
Browse files Browse the repository at this point in the history
Signed-off-by: Tamal Saha <[email protected]>
  • Loading branch information
tamalsaha committed Aug 17, 2024
1 parent 45d1686 commit cacbd91
Show file tree
Hide file tree
Showing 11 changed files with 51 additions and 29 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/ci-0.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ concurrency:
jobs:
build:
name: Build
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v2
Expand All @@ -32,7 +32,7 @@ jobs:
curl -fsSL -o yqq https://github.com/mikefarah/yq/releases/download/3.3.0/yq_linux_amd64
chmod +x yqq
sudo mv yqq /usr/local/bin/yqq
pip3 install yq
pipx install yq
- name: Install Kubernetes CLI
run: |
Expand Down Expand Up @@ -73,6 +73,8 @@ jobs:
GITHUB_TOKEN: ${{ secrets.LGTM_GITHUB_TOKEN }}
run: |
GH_TOOLS_TOKEN=${GITHUB_TOKEN} gh-tools list-repos --orgs=appscode,appscodelabs,wandrs > repos.txt
python3 -m venv .venv
source .venv/bin/activate
pip3 install pyyaml
pip3 install ruamel.yaml
./refresh-repo.sh repos.txt
8 changes: 5 additions & 3 deletions .github/workflows/ci-1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ concurrency:
jobs:
build:
name: Build
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v2
Expand All @@ -32,7 +32,7 @@ jobs:
curl -fsSL -o yqq https://github.com/mikefarah/yq/releases/download/3.3.0/yq_linux_amd64
chmod +x yqq
sudo mv yqq /usr/local/bin/yqq
pip3 install yq
pipx install yq
- name: Install Kubernetes CLI
run: |
Expand Down Expand Up @@ -72,7 +72,9 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.LGTM_GITHUB_TOKEN }}
run: |
GH_TOOLS_TOKEN=${GITHUB_TOKEN} gh-tools list-repos --orgs=appscode-cloud,kubepack,ops-center,kluster-manager,kluster-api > repos.txt
GH_TOOLS_TOKEN=${GITHUB_TOKEN} gh-tools list-repos --orgs=appscode,appscodelabs,wandrs > repos.txt
python3 -m venv .venv
source .venv/bin/activate
pip3 install pyyaml
pip3 install ruamel.yaml
./refresh-repo.sh repos.txt
8 changes: 5 additions & 3 deletions .github/workflows/ci-2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ concurrency:
jobs:
build:
name: Build
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v2
Expand All @@ -32,7 +32,7 @@ jobs:
curl -fsSL -o yqq https://github.com/mikefarah/yq/releases/download/3.3.0/yq_linux_amd64
chmod +x yqq
sudo mv yqq /usr/local/bin/yqq
pip3 install yq
pipx install yq
- name: Install Kubernetes CLI
run: |
Expand Down Expand Up @@ -72,7 +72,9 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.LGTM_GITHUB_TOKEN }}
run: |
GH_TOOLS_TOKEN=${GITHUB_TOKEN} gh-tools list-repos --orgs=gomodules,kmodules > repos.txt
GH_TOOLS_TOKEN=${GITHUB_TOKEN} gh-tools list-repos --orgs=appscode,appscodelabs,wandrs > repos.txt
python3 -m venv .venv
source .venv/bin/activate
pip3 install pyyaml
pip3 install ruamel.yaml
./refresh-repo.sh repos.txt
8 changes: 5 additions & 3 deletions .github/workflows/ci-3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ concurrency:
jobs:
build:
name: Build
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v2
Expand All @@ -32,7 +32,7 @@ jobs:
curl -fsSL -o yqq https://github.com/mikefarah/yq/releases/download/3.3.0/yq_linux_amd64
chmod +x yqq
sudo mv yqq /usr/local/bin/yqq
pip3 install yq
pipx install yq
- name: Install Kubernetes CLI
run: |
Expand Down Expand Up @@ -72,7 +72,9 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.LGTM_GITHUB_TOKEN }}
run: |
GH_TOOLS_TOKEN=${GITHUB_TOKEN} gh-tools list-repos --orgs=kubeguard,kubeshield,pharmer > repos.txt
GH_TOOLS_TOKEN=${GITHUB_TOKEN} gh-tools list-repos --orgs=appscode,appscodelabs,wandrs > repos.txt
python3 -m venv .venv
source .venv/bin/activate
pip3 install pyyaml
pip3 install ruamel.yaml
./refresh-repo.sh repos.txt
8 changes: 5 additions & 3 deletions .github/workflows/ci-4.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ concurrency:
jobs:
build:
name: Build
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v2
Expand All @@ -32,7 +32,7 @@ jobs:
curl -fsSL -o yqq https://github.com/mikefarah/yq/releases/download/3.3.0/yq_linux_amd64
chmod +x yqq
sudo mv yqq /usr/local/bin/yqq
pip3 install yq
pipx install yq
- name: Install Kubernetes CLI
run: |
Expand Down Expand Up @@ -72,7 +72,9 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.LGTM_GITHUB_TOKEN }}
run: |
GH_TOOLS_TOKEN=${GITHUB_TOKEN} gh-tools list-repos --orgs=kubedb > repos.txt
GH_TOOLS_TOKEN=${GITHUB_TOKEN} gh-tools list-repos --orgs=appscode,appscodelabs,wandrs > repos.txt
python3 -m venv .venv
source .venv/bin/activate
pip3 install pyyaml
pip3 install ruamel.yaml
./refresh-repo.sh repos.txt
8 changes: 5 additions & 3 deletions .github/workflows/ci-5.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ concurrency:
jobs:
build:
name: Build
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v2
Expand All @@ -32,7 +32,7 @@ jobs:
curl -fsSL -o yqq https://github.com/mikefarah/yq/releases/download/3.3.0/yq_linux_amd64
chmod +x yqq
sudo mv yqq /usr/local/bin/yqq
pip3 install yq
pipx install yq
- name: Install Kubernetes CLI
run: |
Expand Down Expand Up @@ -72,7 +72,9 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.LGTM_GITHUB_TOKEN }}
run: |
GH_TOOLS_TOKEN=${GITHUB_TOKEN} gh-tools list-repos --orgs=kubeform > repos.txt
GH_TOOLS_TOKEN=${GITHUB_TOKEN} gh-tools list-repos --orgs=appscode,appscodelabs,wandrs > repos.txt
python3 -m venv .venv
source .venv/bin/activate
pip3 install pyyaml
pip3 install ruamel.yaml
./refresh-repo.sh repos.txt
8 changes: 5 additions & 3 deletions .github/workflows/ci-6.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ concurrency:
jobs:
build:
name: Build
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v2
Expand All @@ -32,7 +32,7 @@ jobs:
curl -fsSL -o yqq https://github.com/mikefarah/yq/releases/download/3.3.0/yq_linux_amd64
chmod +x yqq
sudo mv yqq /usr/local/bin/yqq
pip3 install yq
pipx install yq
- name: Install Kubernetes CLI
run: |
Expand Down Expand Up @@ -72,7 +72,9 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.LGTM_GITHUB_TOKEN }}
run: |
GH_TOOLS_TOKEN=${GITHUB_TOKEN} gh-tools list-repos --orgs=kubevault > repos.txt
GH_TOOLS_TOKEN=${GITHUB_TOKEN} gh-tools list-repos --orgs=appscode,appscodelabs,wandrs > repos.txt
python3 -m venv .venv
source .venv/bin/activate
pip3 install pyyaml
pip3 install ruamel.yaml
./refresh-repo.sh repos.txt
8 changes: 5 additions & 3 deletions .github/workflows/ci-7.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ concurrency:
jobs:
build:
name: Build
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v2
Expand All @@ -32,7 +32,7 @@ jobs:
curl -fsSL -o yqq https://github.com/mikefarah/yq/releases/download/3.3.0/yq_linux_amd64
chmod +x yqq
sudo mv yqq /usr/local/bin/yqq
pip3 install yq
pipx install yq
- name: Install Kubernetes CLI
run: |
Expand Down Expand Up @@ -72,7 +72,9 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.LGTM_GITHUB_TOKEN }}
run: |
GH_TOOLS_TOKEN=${GITHUB_TOKEN} gh-tools list-repos --orgs=stashed,kubestash > repos.txt
GH_TOOLS_TOKEN=${GITHUB_TOKEN} gh-tools list-repos --orgs=appscode,appscodelabs,wandrs > repos.txt
python3 -m venv .venv
source .venv/bin/activate
pip3 install pyyaml
pip3 install ruamel.yaml
./refresh-repo.sh repos.txt
8 changes: 5 additions & 3 deletions .github/workflows/ci-8.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ concurrency:
jobs:
build:
name: Build
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v2
Expand All @@ -32,7 +32,7 @@ jobs:
curl -fsSL -o yqq https://github.com/mikefarah/yq/releases/download/3.3.0/yq_linux_amd64
chmod +x yqq
sudo mv yqq /usr/local/bin/yqq
pip3 install yq
pipx install yq
- name: Install Kubernetes CLI
run: |
Expand Down Expand Up @@ -72,7 +72,9 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.LGTM_GITHUB_TOKEN }}
run: |
GH_TOOLS_TOKEN=${GITHUB_TOKEN} gh-tools list-repos --orgs=voyagermesh > repos.txt
GH_TOOLS_TOKEN=${GITHUB_TOKEN} gh-tools list-repos --orgs=appscode,appscodelabs,wandrs > repos.txt
python3 -m venv .venv
source .venv/bin/activate
pip3 install pyyaml
pip3 install ruamel.yaml
./refresh-repo.sh repos.txt
8 changes: 5 additions & 3 deletions .github/workflows/ci-9.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ concurrency:
jobs:
build:
name: Build
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v2
Expand All @@ -32,7 +32,7 @@ jobs:
curl -fsSL -o yqq https://github.com/mikefarah/yq/releases/download/3.3.0/yq_linux_amd64
chmod +x yqq
sudo mv yqq /usr/local/bin/yqq
pip3 install yq
pipx install yq
- name: Install Kubernetes CLI
run: |
Expand Down Expand Up @@ -72,7 +72,9 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.LGTM_GITHUB_TOKEN }}
run: |
GH_TOOLS_TOKEN=${GITHUB_TOKEN} gh-tools list-repos --orgs=kubeops,open-viz > repos.txt
GH_TOOLS_TOKEN=${GITHUB_TOKEN} gh-tools list-repos --orgs=appscode,appscodelabs,wandrs > repos.txt
python3 -m venv .venv
source .venv/bin/activate
pip3 install pyyaml
pip3 install ruamel.yaml
./refresh-repo.sh repos.txt
2 changes: 2 additions & 0 deletions refresh-repo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,8 @@ refresh() {
sed -i 's|ubuntu-20.04|ubuntu-24.04|g' *
sed -i 's|ubuntu-latest|ubuntu-24.04|g' *

sed -i 's|pip3 install|pipx install|g' *

# update GO
sed -i 's/Go\ 1.20/Go\ 1.23/g' *
sed -i "s/go-version:\ 1.20/go-version:\ '1.23'/g" *
Expand Down

0 comments on commit cacbd91

Please sign in to comment.