Skip to content

Docker

Docker #337

name: Docker
on:
workflow_dispatch:
schedule:
- cron: "0 0/6 * * *"
push:
env:
REGISTRY: ghcr.io
IMAGE_NAME: ultramarine-linux/builder
jobs:
build:
runs-on: ubuntu-24.04-arm
permissions:
contents: read
packages: write
strategy:
matrix:
branch: ["rawhide", "44", "43", "42"]
fail-fast: false
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
ref: ${{ 'um' || '' }}${{ matrix.branch }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v4
- name: Setup Docker buildx
uses: docker/setup-buildx-action@v3.12.0
- name: Log into registry ${{ env.REGISTRY }}
if: github.event_name != 'pull_request'
uses: docker/login-action@v4.0.0
with:
registry: ${{ env.REGISTRY }}
username: ultramarine-linux
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v6.19.2
with:
context: .
platforms: linux/amd64,linux/arm64
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ 'um' || '' }}${{ matrix.branch }}