- setup: with RUNNER_DIR, fetch the runner registration token from Gitea's admin API (POST /admin/actions/runners/registration-token) instead of the gitea CLI on Gitea's volume; record secrets/setup-status (ok, unreachable, bad-credentials) and exit cleanly when Gitea cannot be used. - mirror: Radicle is optional. Repositories wait until a node is there (key and control socket in RAD_HOME), re-checked every reconcile; RADICLE=off. - page: /status.json; hide the Radicle parts without a node, banner when Gitea is unreachable or refuses the login. - example workflow: runs-on: ipcr, the forge's own runner label. - docs: two listings, split (IPCR-Forge) and all in one (IPCR-Forge-AIO).
42 lines
1.6 KiB
YAML
42 lines
1.6 KiB
YAML
# Builds the Dockerfile at the root for every v* tag and pushes it to this forge's staging registry.
|
|
# IPCR picks it up from there within a minute and publishes it on IPFS; the forge's page then
|
|
# lists the exact `image:` line to use.
|
|
#
|
|
# Differences from a GitHub-hosted workflow, all needed on this forge:
|
|
# login to localhost:5000 the staging registry, as this repository: IPCR_PUSH_TOKEN is a secret
|
|
# the forge sets on every repository allowed to publish
|
|
# images: localhost:5000/… this repository's own name there (no other is accepted)
|
|
# network=host so buildx's builder can reach that registry
|
|
# runs-on: ipcr the forge's own runner, the one that sees that registry (a Gitea app's
|
|
# own runner, if there is one, does not)
|
|
name: image
|
|
on:
|
|
push:
|
|
tags: ['v*']
|
|
jobs:
|
|
image:
|
|
runs-on: ipcr
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: docker/login-action@v3
|
|
with:
|
|
registry: localhost:5000
|
|
username: ${{ github.repository }}
|
|
password: ${{ secrets.IPCR_PUSH_TOKEN }}
|
|
- uses: docker/metadata-action@v5
|
|
id: meta
|
|
with:
|
|
images: localhost:5000/${{ github.repository }}
|
|
tags: |
|
|
type=semver,pattern={{version}}
|
|
type=raw,value=latest
|
|
- uses: docker/setup-buildx-action@v3
|
|
with:
|
|
driver-opts: network=host
|
|
- uses: docker/build-push-action@v6
|
|
with:
|
|
context: .
|
|
push: true
|
|
tags: ${{ steps.meta.outputs.tags }}
|
|
labels: ${{ steps.meta.outputs.labels }}
|