Some checks failed
CI / ci (push) Failing after 1s
CI / build (push) Failing after 34s
Build and Push CI Image / images (docker/build/Dockerfile.ci, incr-ci, php8.3-2) (push) Successful in 6m49s
CI / ci (pull_request) Failing after 2m39s
CI / build (pull_request) Failing after 34s
46 lines
1.4 KiB
YAML
46 lines
1.4 KiB
YAML
name: Build and Push CI Image
|
|
|
|
on:
|
|
push:
|
|
# 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/*']
|
|
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-2
|
|
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 }}
|