Skip to content

Build ubuntu-noble in CI #16

Build ubuntu-noble in CI

Build ubuntu-noble in CI #16

Workflow file for this run

name: Build dunst CI images
# Run only when merged onto master
on:
push:
branches: [ 'master' ]
workflow_dispatch:
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
build-and-push-image:
runs-on: ubuntu-latest
strategy:
matrix:
distro:
- alpine
- archlinux
- debian-bookworm
- debian-bullseye
- debian-buster
- fedora
- misc-doxygen
- ubuntu-focal
- ubuntu-jammy
- ubuntu-noble
# We need to push to the registry
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Log in to the Container registry
uses: docker/login-action@v3.0.0
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
# Default metadata action step.
# Will add some "org.opencontainers.*"-labels with useful descriptions
# However the tags are totally unusable for our case
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5.5.1
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
- name: Build and push Docker image
uses: docker/build-push-action@v5.1.0
with:
context: ci
file: ci/Dockerfile.${{ matrix.distro }}
push: true
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ matrix.distro }}
labels: ${{ steps.meta.outputs.labels }}