Skip to content

Commit

Permalink
chore: update github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
iwilltry42 committed Jan 17, 2025
1 parent 042ce7b commit 4fbdcc4
Show file tree
Hide file tree
Showing 7 changed files with 80 additions and 76 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/aur-prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ on:

jobs:
aur-pre-release:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
container: archlinux:base
steps:
- name: Checkout Project
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Publish Pre-Release to AUR
run: |
# AUR Packages are not allowed to use - in the package version. its used to combine pkgver and pkgrel
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/aur-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

jobs:
aur-release:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
container: archlinux:base
steps:
- name: Checkout Project
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ on:

jobs:
build:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
container:
image: python:3.9
steps:
- name: Checkout Project
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install Requirements
Expand Down
34 changes: 17 additions & 17 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ jobs:
test-suite:
timeout-minutes: 30
name: Full Test Suite
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
steps:
# Setup
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup Go environment
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: "${{ env.GO_VERSION }}"
- name: Setup Docker
Expand Down Expand Up @@ -55,31 +55,31 @@ jobs:
release-images:
name: Build & Release Images
# Only run on tags
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
steps:
# Setup
- uses: actions/checkout@v3
- uses: actions/checkout@v4
# Container Image Setup
- name: Setup Docker
uses: docker-practice/actions-setup-docker@master
with:
docker_version: "${{ env.DOCKER_VERSION }}"
- name: Log in to the Container registry
uses: docker/login-action@v1
uses: docker/login-action@v3
with:
registry: ${{ env.IMAGE_REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v3
# Gather Docker Metadata
- name: Docker Metadata k3d-binary
id: meta-k3d-binary
env:
IMAGE_ID: k3d
uses: docker/metadata-action@v3
uses: docker/metadata-action@v5
with:
images: ${{ env.IMAGE_REGISTRY }}/${{ env.IMAGE_BASE_REPO }}/${{ env.IMAGE_ID }}
github-token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -96,7 +96,7 @@ jobs:
env:
IMAGE_ID: k3d
IMAGE_SUFFIX: "-dind"
uses: docker/metadata-action@v3
uses: docker/metadata-action@v5
with:
images: ${{ env.IMAGE_REGISTRY }}/${{ env.IMAGE_BASE_REPO }}/${{ env.IMAGE_ID }}
github-token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -114,7 +114,7 @@ jobs:
id: meta-k3d-proxy
env:
IMAGE_ID: k3d-proxy
uses: docker/metadata-action@v3
uses: docker/metadata-action@v5
with:
images: ${{ env.IMAGE_REGISTRY }}/${{ env.IMAGE_BASE_REPO }}/${{ env.IMAGE_ID }}
github-token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -130,7 +130,7 @@ jobs:
id: meta-k3d-tools
env:
IMAGE_ID: k3d-tools
uses: docker/metadata-action@v3
uses: docker/metadata-action@v5
with:
images: ${{ env.IMAGE_REGISTRY }}/${{ env.IMAGE_BASE_REPO }}/${{ env.IMAGE_ID }}
github-token: ${{ secrets.GITHUB_TOKEN }}
Expand Down Expand Up @@ -162,7 +162,7 @@ jobs:
rm "$OUT_FILE_TMP"
# Build and Push container images
- name: Build Images
uses: docker/bake-action@v2.3.0
uses: docker/bake-action@v6
with:
files: |
./docker-bake.hcl
Expand All @@ -180,7 +180,7 @@ jobs:
wait-interval: 20
- name: Push Images
if: startsWith(github.ref, 'refs/tags/')
uses: docker/bake-action@v2.3.0
uses: docker/bake-action@v6
with:
files: |
./docker-bake.hcl
Expand All @@ -191,12 +191,12 @@ jobs:
release-github:
name: Build & Release Binaries
# Only run on tags
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
steps:
# Setup
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup Go environment
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: "${{ env.GO_VERSION }}"
- name: Setup CI Tools
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/sponsors-readme.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Generate Sponsors 💖
uses: JamesIves/github-sponsors-readme-action@v1
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test-install-osmatrix.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,16 @@ jobs:
- macos-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Run install.sh on ${{ matrix.os }}
shell: bash
env:
DEBUG: "true"
# just run install.sh b/c github can throttle itself based on egress limits and gets 503 sometimes
# just run install.sh b/c GitHub can throttle itself based on egress limits and gets 503 sometimes
run: |
echo "Simulating: curl -s https://raw.githubusercontent.com/$GITHUB_REPOSITORY/$GITHUB_REF_NAME/install.sh | bash"
./install.sh
k3d version
- name: Create cluster
if: matrix.os == 'ubuntu-latest' # mac and windows Github runners can't use docker
if: matrix.os == 'ubuntu-latest' # mac and windows GitHub runners can't use docker
run: k3d cluster create demo
104 changes: 54 additions & 50 deletions .github/workflows/test-matrix.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,30 +3,32 @@ name: Test Matrix
on: workflow_dispatch

jobs:
test-docker-versions-failing:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
docker_version:
- "20.10.3"
steps:
- uses: actions/checkout@v3
- name: Setup Docker
uses: docker-practice/actions-setup-docker@master
- name: Test Docker Version expected to fail
run: |
echo "Running test with docker version ${{matrix.docker_version}}"
docker info
set +e
make e2e \
-e E2E_DIND_VERSION=${{matrix.docker_version}} \
-e E2E_INCLUDE=test_basic
if [[ $? == 0 ]]; then
echo "ATTENTION: Test passed while it was expected to fail!"
exit 1
fi
set -e
# The latest known failing docker version is not supported anymore.
# -> Uncomment the following job once we see another one failing.
# test-docker-versions-failing:
# runs-on: ubuntu-latest
# strategy:
# fail-fast: false
# matrix:
# docker_version:
# - "20.10.3"
# steps:
# - uses: actions/checkout@v4
# - name: Setup Docker
# uses: docker-practice/actions-setup-docker@master
# - name: Test Docker Version expected to fail
# run: |
# echo "Running test with docker version ${{matrix.docker_version}}"
# docker info
# set +e
# make e2e \
# -e E2E_DIND_VERSION=${{matrix.docker_version}} \
# -e E2E_INCLUDE=test_basic
# if [[ $? == 0 ]]; then
# echo "ATTENTION: Test passed while it was expected to fail!"
# exit 1
# fi
# set -e

test-docker-versions:
runs-on: ubuntu-latest
Expand All @@ -39,7 +41,7 @@ jobs:
- "26.1.5"
- "27.3.1"
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup Docker
uses: docker-practice/actions-setup-docker@master
- name: Test Docker Version expected to pass
Expand All @@ -50,30 +52,32 @@ jobs:
-e E2E_DIND_VERSION=${{matrix.docker_version}} \
-e E2E_INCLUDE=test_basic
test-k3s-versions-failing:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
k3s_channel:
- "v1.17"
steps:
- uses: actions/checkout@v3
- name: Setup Docker
uses: docker-practice/actions-setup-docker@master
- name: Test K3s Version expected to fail
run: |
echo "Running test with docker version ${{matrix.k3s_channel}}"
docker info
set +e
make e2e \
-e E2E_K3S_VERSION=+${{matrix.k3s_channel}} \
-e E2E_INCLUDE=test_full_lifecycle
if [[ $? == 0 ]]; then
echo "ATTENTION: Test passed while it was expected to fail!"
exit 1
fi
set -e
# The latest known failing K3s version is not supported anymore.
# -> Uncomment the following job once we see another one failing.
# test-k3s-versions-failing:
# runs-on: ubuntu-latest
# strategy:
# fail-fast: false
# matrix:
# k3s_channel:
# - "v1.17"
# steps:
# - uses: actions/checkout@v4
# - name: Setup Docker
# uses: docker-practice/actions-setup-docker@master
# - name: Test K3s Version expected to fail
# run: |
# echo "Running test with docker version ${{matrix.k3s_channel}}"
# docker info
# set +e
# make e2e \
# -e E2E_K3S_VERSION=+${{matrix.k3s_channel}} \
# -e E2E_INCLUDE=test_full_lifecycle
# if [[ $? == 0 ]]; then
# echo "ATTENTION: Test passed while it was expected to fail!"
# exit 1
# fi
# set -e

test-k3s-versions:
runs-on: ubuntu-latest
Expand All @@ -86,7 +90,7 @@ jobs:
- "v1.30"
- "v1.31"
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup Docker
uses: docker-practice/actions-setup-docker@master
- name: Test K3s Version expected to pass
Expand Down

0 comments on commit 4fbdcc4

Please sign in to comment.