feat: rework act image build
This commit is contained in:
parent
90754e5d68
commit
df2c1b7d81
1 changed files with 7 additions and 13 deletions
|
@ -10,20 +10,14 @@ on:
|
|||
- ".forgejo/workflows/act_runtime.yaml"
|
||||
- "act_runtime/**"
|
||||
|
||||
env:
|
||||
TAGS: '{"ubuntu-latest": {"ubuntu:22.04": "22.04-arm64","ubuntu:24.04": "arm64"}}'
|
||||
VERSIONS: '{"ubuntu:22.44": {"llvm": "19"},"ubuntu:24.04": {"llvm": "19"}}'
|
||||
|
||||
jobs:
|
||||
build_images:
|
||||
strategy:
|
||||
matrix:
|
||||
os:
|
||||
- ubuntu-latest
|
||||
base:
|
||||
- ubuntu:22.04
|
||||
- ubuntu:24.04
|
||||
runs-on: ${{ matrix.os }}
|
||||
base_tage:
|
||||
- "22.04"
|
||||
- "24.04"
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
@ -42,7 +36,7 @@ jobs:
|
|||
with:
|
||||
context: "./act_runtime"
|
||||
push: true
|
||||
tags: code.icb4dc0.de/infrastructure/images/act_runtime:${{ fromJSON(env.TAGS)[matrix.os][matrix.base] }}
|
||||
platforms: linux/amd64,linux/arm64
|
||||
tags: code.icb4dc0.de/infrastructure/images/act_runtime:${{ matrix.base_tage }}
|
||||
build-args: |
|
||||
BASE_IMAGE=${{ matrix.base }}
|
||||
LLVM_VERSION=${{ fromJSON(env.VERSIONS)[matrix.base]["llvm"] }}
|
||||
BASE_IMAGE=ubuntu:${{ matrix.base_tage }}
|
||||
|
|
Loading…
Add table
Reference in a new issue