images/.forgejo/workflows/act_runtime.yaml
Peter Kurfer 03f41273e1
Some checks failed
act_runtime / build_images (ubuntu:24.04, ubuntu-latest) (push) Successful in 4m54s
Image builds / build_images (caddy) (push) Successful in 19s
act_runtime / build_images (ubuntu:20.04, ubuntu-latest) (push) Successful in 5m18s
Image builds / build_images (renovate) (push) Successful in 1m13s
Renovate / renovate (push) Successful in 1m9s
act_runtime / build_images (ubuntu:20.04, ubuntu-latest-amd64) (push) Failing after 11m3s
act_runtime / build_images (ubuntu:24.04, ubuntu-latest-amd64) (push) Failing after 15m24s
feat(act): switch to ubuntu base images
2025-01-21 11:29:48 +01:00

49 lines
1.3 KiB
YAML

---
name: act_runtime
on:
schedule:
- cron: "21 2 * * *"
push:
branches:
- main
paths:
- ".forgejo/workflows/act_runtime.yaml"
- "act_runtime/**"
env:
TAGS: '{"ubuntu-latest": {"ubuntu:20.04": "20.04-arm64","ubuntu:24.04": "arm64"},"ubuntu-latest-amd64": {"ubuntu:20.04": "20.04-amd64","ubuntu:24.04": "amd64"}}'
VERSIONS: '{"ubuntu:20.04": {"llvm": "13"},"ubuntu:24.04": {"llvm": "16"}}'
jobs:
build_images:
strategy:
matrix:
os:
- ubuntu-latest
- ubuntu-latest-amd64
base:
- ubuntu:20.04
- ubuntu:24.04
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
registry: code.icb4dc0.de
username: prskr
password: ${{ secrets.CONTAINER_REGISTRY_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v6
with:
context: "./act_runtime"
push: true
tags: code.icb4dc0.de/infrastructure/images/act_runtime:${{ fromJSON(env.TAGS)[matrix.os][matrix.base] }}
build-args: |
BASE_IMAGE=${{ matrix.base }}
LLVM_VERSION=${{ fromJSON(env.VERSIONS)[matrix.base]["llvm"] }}