Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
17df335e3d | ||
|
|
b508bd267b |
@@ -0,0 +1,42 @@
|
||||
# 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).
|
||||
#
|
||||
# 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
|
||||
name: ipcr
|
||||
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=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
|
||||
push: true
|
||||
tags: ${{ steps.meta.outputs.tags }}
|
||||
labels: ${{ steps.meta.outputs.labels }}
|
||||
@@ -332,7 +332,7 @@
|
||||
st8.textContent = "";
|
||||
publisher = s.key.id || "";
|
||||
$("key-name").textContent = s.key.name || "—";
|
||||
$("key-id").textContent = publisher || "not created yet (the first import creates it)";
|
||||
$("key-id").textContent = publisher || "not created yet (IPCR creates it when it starts: reload in a minute)";
|
||||
$("ens-value").textContent = "ipns://" + (publisher || "k51…");
|
||||
$("dns-value").textContent = "dnslink=/ipns/" + (publisher || "k51…");
|
||||
pubName = s.name && s.name.ok ? s.name.name : "";
|
||||
|
||||
Reference in New Issue
Block a user