Gitea workflow: push to the IPCR app on yunderalabs (ubuntu-latest runner, namespace token IPCR_PUSH_TOKEN); the forge's own runner and staging registry are gone

This commit is contained in:
Worph
2026-10-12 17:29:55 +00:00
parent 36f713a809
commit d7efef1d4a
+13 -16
View File
@@ -1,39 +1,36 @@
# IPCR Forge: builds the forge service's image (forge/Dockerfile) for every v* tag pushed to this repository's Gitea copy, and pushes it
# to the forge's staging registry; IPCR imports it from there within a minute and publishes it on
# IPFS under the forge's name (<forge>/ipcr/ipcr-forge, and ipcr-forge at the root).
# IPCR Forge: builds the forge service's image (forge/Dockerfile) for every v* tag pushed to this repository on Gitea (gitea-yunderalabs.nsl.sh),
# pushed to the IPCR app on the same server; IPCR publishes it on IPFS within seconds, under its name
# (ipcrteam.eth): ipcr-yunderalabs.nsl.sh/ipns/ipcrteam.eth/<owner>/<repo>:<version>.
#
# GitHub ignores .gitea/ (it runs .github/workflows/image.yml → ghcr.io), and Gitea ignores
# .github/ as soon as this folder exists: one repository, one workflow on each side.
#
# runs-on: ipcr the forge's own runner, the only one that reaches the staging registry
# localhost:5000 that registry, logged in to as this repository (IPCR_PUSH_TOKEN, a
# secret the forge sets on every repository allowed to publish)
# network=host so buildx's builder can reach it too
# runs-on: ubuntu-latest the Gitea app's own runner (Docker-in-Docker)
# ipcr-push-yunderalabs… IPCR's push endpoint; login <owner> with IPCR_PUSH_TOKEN, a namespace
# token from the IPCR dashboard (Push tokens), set as an Actions secret
# on the organisation
name: ipcr
on:
push:
tags: ['v*']
env:
IPCR_PUSH: ipcr-push-yunderalabs.nsl.sh
jobs:
image:
runs-on: ipcr
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: docker/login-action@v3
with:
registry: localhost:5000
username: ${{ github.repository }}
registry: ${{ env.IPCR_PUSH }}
username: ${{ github.repository_owner }}
password: ${{ secrets.IPCR_PUSH_TOKEN }}
- uses: docker/metadata-action@v5
id: meta
with:
images: localhost:5000/${{ github.repository }}
images: ${{ env.IPCR_PUSH }}/${{ github.repository }}
tags: |
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=raw,value=latest
- uses: docker/setup-buildx-action@v3
with:
driver-opts: network=host
- uses: docker/build-push-action@v6
with:
context: forge