Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ on:
jobs:
check_templated_files:
name: Ensure templated Dockerfiles are up to date
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: Generate templates
run: python3 template.py values.yaml
Expand All @@ -22,12 +22,12 @@ jobs:

create_matrix:
name: Create Matrix
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.create-matrix.outputs.matrix }}
steps:
- name: Checkout repo
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: Create list of changed files
run: |
Expand All @@ -52,28 +52,28 @@ jobs:
run_matrix:
name: Run Matrix
permissions: write-all
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
needs: [check_templated_files, create_matrix]
if: ${{ needs.create_matrix.outputs.matrix != '' && needs.create_matrix.outputs.matrix != '{"include":[]}' }}
strategy:
fail-fast: false
matrix: ${{ fromJson(needs.create_matrix.outputs.matrix) }}
steps:
- name: Checkout repo
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
uses: docker/setup-buildx-action@v4

- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
uses: docker/login-action@v4
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push to Github registry
uses: docker/build-push-action@v5
uses: docker/build-push-action@v7
with:
# only publish from main branch and don't publish on forks
push: ${{ github.ref == 'refs/heads/main' && ! github.event.pull_request.head.repo.fork }}
Expand Down