Demo images / Build & push demo images (push) Failing after 2m22s
Replaces the registry host across 86 files: 309 references, covering all 40 app manifests, the orchestrator and container crates, the release and catalog scripts, both demo-images workflows, the ISO builder, demo-deploy, and the frontend marketplace data. Verified the domain actually serves the registry before rewriting anything, rather than assuming the web host implies the registry: - TLS verifies clean, HTTP/2 on the web root - an anonymous token grants a manifest fetch (HTTP 200) with no credentials - skopeo inspect --no-creds resolves an image and lists its tags That last check is the one that matters: an outside developer with no account can now pull, which was the functional blocker for publishing at all. Plain-HTTP references become HTTPS in the same pass, so OTA downloads stop crossing the network in the clear. Deliberately NOT rewritten: - The public FIPS anchor on port 8444. It is a functional network endpoint every node dials to bootstrap the mesh — closer to Bitcoin Core's hardcoded seeds than to leaked infrastructure. The domain does resolve to the same host, so it could become a hostname, but that adds a DNS dependency to the path used precisely when things are broken. Worth a deliberate decision, not a side effect of this change. - The companion APK on port 2100. The domain returns 404 for that path, so rewriting it would swap a working URL for a broken one. The Releases page does serve (200), which is where the plan already wants those binaries. - releases/app-catalog.json, releases/manifest.json and release-manifest.json. These carry `signature` and `signed_by`; editing their contents invalidates the signature and the fleet refuses artifacts that fail verification. They were rewritten in a first pass and reverted — they must be regenerated and re-signed through the signing ceremony instead, which needs the mnemonic. So the catalog still advertises the old host until that ceremony runs. Nodes resolve images through the signed catalog, not the on-disk manifests, so this commit alone does not change what a node pulls. Verified: archipelago-container 75/75; every manifest still parses with a top-level app block; no signed artifact modified. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
75 lines
2.5 KiB
YAML
75 lines
2.5 KiB
YAML
name: Demo images
|
|
|
|
# Builds and pushes the public-demo images on every change to the UI / mock
|
|
# backend, so the separated `archy-demo` Portainer stack auto-tracks the real
|
|
# code (see demo-deploy/ and docs/demo-deployment-design.md).
|
|
#
|
|
# Required repo configuration:
|
|
# vars.DEMO_REGISTRY e.g. source.archipelago-foundation.org/lfg2025
|
|
# vars.DEMO_REGISTRY_HOST registry host for docker login (no org suffix)
|
|
# secrets.DEMO_REGISTRY_USER
|
|
# secrets.DEMO_REGISTRY_TOKEN
|
|
# Optional:
|
|
# secrets.PORTAINER_WEBHOOK redeploy hook called after a successful push
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
paths:
|
|
- 'neode-ui/**'
|
|
- 'docker-compose.demo.yml'
|
|
- '.github/workflows/demo-images.yml'
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build:
|
|
name: Build & push demo images
|
|
runs-on: ubuntu-latest
|
|
# Skip cleanly on forks / before registry config is set.
|
|
if: ${{ vars.DEMO_REGISTRY != '' }}
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v3
|
|
with:
|
|
# The demo registry is plain HTTP — teach buildkit to push without TLS
|
|
# (the host docker daemon needs it in insecure-registries for login too).
|
|
buildkitd-config-inline: |
|
|
[registry."${{ vars.DEMO_REGISTRY_HOST || vars.DEMO_REGISTRY }}"]
|
|
http = true
|
|
|
|
- name: Log in to registry
|
|
uses: docker/login-action@v3
|
|
with:
|
|
registry: ${{ vars.DEMO_REGISTRY_HOST || vars.DEMO_REGISTRY }}
|
|
username: ${{ secrets.DEMO_REGISTRY_USER }}
|
|
password: ${{ secrets.DEMO_REGISTRY_TOKEN }}
|
|
|
|
- name: Build & push backend
|
|
uses: docker/build-push-action@v6
|
|
with:
|
|
context: .
|
|
file: neode-ui/Dockerfile.backend
|
|
push: true
|
|
tags: |
|
|
${{ vars.DEMO_REGISTRY }}/archy-demo-backend:demo
|
|
${{ vars.DEMO_REGISTRY }}/archy-demo-backend:${{ github.sha }}
|
|
|
|
- name: Build & push web
|
|
uses: docker/build-push-action@v6
|
|
with:
|
|
context: .
|
|
file: neode-ui/Dockerfile.web
|
|
push: true
|
|
build-args: |
|
|
VITE_DEMO=1
|
|
tags: |
|
|
${{ vars.DEMO_REGISTRY }}/archy-demo-web:demo
|
|
${{ vars.DEMO_REGISTRY }}/archy-demo-web:${{ github.sha }}
|
|
|
|
- name: Trigger Portainer redeploy
|
|
if: ${{ success() && secrets.PORTAINER_WEBHOOK != '' }}
|
|
run: curl -fsS -X POST "${{ secrets.PORTAINER_WEBHOOK }}"
|