Skip to content

feat(ci): move Linux CI to UBI 10 container images #1

feat(ci): move Linux CI to UBI 10 container images

feat(ci): move Linux CI to UBI 10 container images #1

Workflow file for this run

name: build-ci-image
on:
push:
branches: [master, main]
paths:
- '.devcontainer/Containerfile'
- '.devcontainer/Containerfile.intel'
- '.github/workflows/build-ci-image.yml'
pull_request:
paths:
- '.devcontainer/Containerfile'
- '.devcontainer/Containerfile.intel'
- '.github/workflows/build-ci-image.yml'
schedule:
# Weekly rebuild — picks up UBI 10 base image security updates
- cron: '0 6 * * 1'
workflow_dispatch:
env:
REGISTRY: ghcr.io
permissions:
contents: read
packages: write
jobs:
build-ci-image:
name: CI image
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Log in to GHCR
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Image metadata
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ github.repository }}/ci
tags: |
type=raw,value=latest
type=sha,prefix=sha-,format=short
- name: Build and push CI image
uses: docker/build-push-action@v6
with:
context: .devcontainer
file: .devcontainer/Containerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build-ci-intel-image:
name: CI Intel image
runs-on: ubuntu-latest
needs: build-ci-image
steps:
- uses: actions/checkout@v6
- name: Log in to GHCR
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Image metadata
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ github.repository }}/ci-intel
tags: |
type=raw,value=latest
type=sha,prefix=sha-,format=short
- name: Build and push Intel CI image
uses: docker/build-push-action@v6
with:
context: .devcontainer
file: .devcontainer/Containerfile.intel
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build-args: |
BASE_IMAGE=${{ env.REGISTRY }}/${{ github.repository }}/ci:latest