2026-08-16 01:12:25 +02:00
|
|
|
name: Build and Push CI Image
|
|
|
|
|
|
|
|
|
|
on:
|
|
|
|
|
push:
|
2026-08-16 09:14:25 +02:00
|
|
|
# release/* included so a new CI image exists before the release PR is
|
|
|
|
|
# opened; ci.yml on that branch cannot pass until the image is published.
|
|
|
|
|
branches: [main, 'release/*']
|
2026-08-16 01:12:25 +02:00
|
|
|
paths:
|
|
|
|
|
- 'docker/build/**'
|
|
|
|
|
- '.forgejo/workflows/images.yml'
|
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
|
images:
|
|
|
|
|
runs-on: docker
|
|
|
|
|
container:
|
|
|
|
|
image: catthehacker/ubuntu:act-latest
|
|
|
|
|
strategy:
|
|
|
|
|
matrix:
|
|
|
|
|
include:
|
|
|
|
|
- name: incr-ci
|
|
|
|
|
file: docker/build/Dockerfile.ci
|
|
|
|
|
version: php8.3-1
|
|
|
|
|
steps:
|
|
|
|
|
- uses: https://data.forgejo.org/actions/checkout@v4
|
|
|
|
|
|
|
|
|
|
- name: Set up Docker Buildx
|
|
|
|
|
uses: https://data.forgejo.org/docker/setup-buildx-action@v3
|
|
|
|
|
|
|
|
|
|
- name: Login to Forgejo Registry
|
|
|
|
|
uses: https://data.forgejo.org/docker/login-action@v3
|
|
|
|
|
with:
|
|
|
|
|
registry: forge.lvl0.xyz
|
|
|
|
|
username: ${{ github.actor }}
|
|
|
|
|
password: ${{ secrets.REGISTRY_TOKEN }}
|
|
|
|
|
|
|
|
|
|
- name: Build and push
|
|
|
|
|
uses: https://data.forgejo.org/docker/build-push-action@v5
|
|
|
|
|
with:
|
|
|
|
|
context: .
|
|
|
|
|
file: ${{ matrix.file }}
|
|
|
|
|
push: true
|
|
|
|
|
tags: |
|
|
|
|
|
forge.lvl0.xyz/lvl0/${{ matrix.name }}:${{ matrix.version }}
|
|
|
|
|
forge.lvl0.xyz/lvl0/${{ matrix.name }}:latest
|
|
|
|
|
forge.lvl0.xyz/lvl0/${{ matrix.name }}:${{ github.sha }}
|