images/.forgejo/workflows/act_runtime.yaml

50 lines
1.3 KiB
YAML
Raw Normal View History

2023-11-29 20:19:24 +01:00
---
name: act_runtime
on:
schedule:
2024-03-02 12:20:03 +01:00
- cron: "21 2 * * *"
2023-11-29 20:19:24 +01:00
push:
branches:
- main
2024-05-15 17:58:55 +02:00
paths:
- ".forgejo/workflows/act_runtime.yaml"
- "act_runtime/**"
2023-11-29 20:19:24 +01:00
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"}}'
2023-11-29 20:19:24 +01:00
jobs:
build_images:
strategy:
matrix:
2024-03-02 12:20:03 +01:00
os:
2023-11-29 20:19:24 +01:00
- ubuntu-latest
- ubuntu-latest-amd64
base:
- ubuntu:20.04
- ubuntu:24.04
2023-11-29 20:19:24 +01:00
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
2024-03-02 12:20:03 +01:00
uses: actions/checkout@v4
2023-11-29 20:19:24 +01:00
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
2023-11-29 20:19:24 +01:00
with:
context: "./act_runtime"
push: true
tags: code.icb4dc0.de/infrastructure/images/act_runtime:${{ fromJSON(env.TAGS)[matrix.os][matrix.base] }}
build-args: |
2023-12-22 10:24:56 +01:00
BASE_IMAGE=${{ matrix.base }}
2024-03-02 12:20:03 +01:00
LLVM_VERSION=${{ fromJSON(env.VERSIONS)[matrix.base]["llvm"] }}