Skip to content

Commit

Permalink
runner: Build containers for both Ubuntu Focal and Ubuntu Noble
Browse files Browse the repository at this point in the history
We can now pass a custom UBUNTU_VERSION value to build a specific version of the container.
The name of the container needs to be changed to account for the version name.

Signed-off-by: Manu Bretelle <[email protected]>
  • Loading branch information
chantra committed Aug 20, 2024
1 parent 5720f0e commit 1ead9cd
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,21 @@ jobs:
- arch: s390x
dockerfile: s390x.Dockerfile
platform: linux/s390x
ubuntu_version:
- focal
- noble
- arch: aarch64
dockerfile: Dockerfile
platform: linux/arm64
ubuntu_version:
- focal
- noble
- arch: x86_64
dockerfile: Dockerfile
platform: linux/amd64
ubuntu_version:
- focal
- noble

steps:
- name: Checkout repository
Expand Down Expand Up @@ -89,7 +98,7 @@ jobs:
flavor: |
latest=auto
prefix=
suffix=-${{ matrix.arch }}
suffix=-${{ matrix.ubuntu_version }}-${{ matrix.arch }}
# Build and push Docker image with Buildx (don't push on PR)
# https://github.com/docker/build-push-action
Expand All @@ -103,6 +112,7 @@ jobs:
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
platforms: ${{ matrix.platform }}
build-args: UBUNTU_VERSION=${{ matrix.ubuntu_version }}

# Sign the resulting Docker image digest except on PRs.
# This will only write to the public Rekor transparency log when the Docker
Expand Down

0 comments on commit 1ead9cd

Please sign in to comment.