ci: build in a prebuilt Arch image with ccache and no QML cachegen

This commit is contained in:
tri committed 2026-11-14 08:27:22 +07:00
1 parent 8a99cf0f7c
commit d61e7b59aa
3 files changed
+61 -8

No files matched your search

+31
View File
@@ -0,0 +1,31 @@
name: CI image
# Builds the Arch image that ci.yml runs in, with the build dependencies preinstalled.
# Rebuilt weekly to pick up Arch updates.
on:
push:
branches: [main]
paths: ['.gitea/ci-image/**', '.gitea/workflows/ci-image.yml']
schedule:
- cron: '0 3 * * 1'
workflow_dispatch:
permissions:
contents: read
packages: write
jobs:
image:
# The build runs on the runner's own Docker daemon, so the amd64 runner has the new
# image locally right away. It does not re-pull tags it already has.
runs-on: amd64
env:
IMAGE: git.trivk.dev/tri/qtpotato-ci:latest
steps:
- uses: actions/checkout@v4
- name: Build
run: docker build --pull -t "$IMAGE" .gitea/ci-image
- name: Push
run: |
echo "${{ secrets.GITHUB_TOKEN }}" | docker login git.trivk.dev -u "${{ github.actor }}" --password-stdin
docker push "$IMAGE"