2023-11-29 19:19:24 +00:00
|
|
|
---
|
|
|
|
name: act_runtime
|
|
|
|
on:
|
|
|
|
schedule:
|
2024-03-02 11:20:03 +00:00
|
|
|
- cron: "21 2 * * *"
|
2023-11-29 19:19:24 +00:00
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
2024-05-15 15:58:55 +00:00
|
|
|
paths:
|
|
|
|
- ".forgejo/workflows/act_runtime.yaml"
|
|
|
|
- "act_runtime/**"
|
2023-11-29 19:19:24 +00:00
|
|
|
|
|
|
|
env:
|
|
|
|
TAGS: '{"ubuntu-latest": {"node:20-bullseye-slim": "20.04-arm64","node:20-bookworm-slim": "arm64"},"ubuntu-latest-amd64": {"node:20-bullseye-slim": "20.04-amd64","node:20-bookworm-slim": "amd64"}}'
|
2023-12-22 09:24:56 +00:00
|
|
|
VERSIONS: '{"node:20-bullseye-slim": {"llvm": "13"},"node:20-bookworm-slim": {"llvm": "16"}}'
|
2023-11-29 19:19:24 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build_images:
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2024-03-02 11:20:03 +00:00
|
|
|
os:
|
2023-11-29 19:19:24 +00:00
|
|
|
- ubuntu-latest
|
|
|
|
- ubuntu-latest-amd64
|
|
|
|
base:
|
|
|
|
- node:20-bullseye-slim
|
|
|
|
- node:20-bookworm-slim
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2024-03-02 11:20:03 +00:00
|
|
|
uses: actions/checkout@v4
|
2023-11-29 19:19:24 +00: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@v5
|
|
|
|
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 09:24:56 +00:00
|
|
|
BASE_IMAGE=${{ matrix.base }}
|
2024-03-02 11:20:03 +00:00
|
|
|
LLVM_VERSION=${{ fromJSON(env.VERSIONS)[matrix.base]["llvm"] }}
|