38 lines
1004 B
YAML
38 lines
1004 B
YAML
name: build-ci-image
|
|
|
|
on:
|
|
push:
|
|
paths:
|
|
- ci/Dockerfile
|
|
- .dockerignore
|
|
- .gitea/workflows/build-ci-image.yml
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
image:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Log in to container registry
|
|
run: |
|
|
echo "${{ secrets.REGISTRY_PASSWORD }}" | docker login "${{ vars.REGISTRY_HOST }}" \
|
|
-u "${{ secrets.REGISTRY_USERNAME }}" \
|
|
--password-stdin
|
|
|
|
- name: Build CI image
|
|
run: |
|
|
docker build \
|
|
--build-arg BASE_IMAGE=catthehacker/ubuntu:act-latest \
|
|
--build-arg LLVM_VERSION=22 \
|
|
--build-arg MESON_VERSION=latest \
|
|
-t "${{ vars.REGISTRY_IMAGE }}:latest" \
|
|
-t "${{ vars.REGISTRY_IMAGE }}:clang22" \
|
|
-f ci/Dockerfile .
|
|
|
|
- name: Push CI image
|
|
run: |
|
|
docker push "${{ vars.REGISTRY_IMAGE }}:latest"
|
|
docker push "${{ vars.REGISTRY_IMAGE }}:clang22"
|