ci: rust job through the builder image, worker test stage and runtime start, nightly advisories, manual digest-tagged release-images workflow; CSP proof script
This commit is contained in:
1 parent
3970cdca52
commit
4833fd29ef
7 files changed
+131
-1
No files matched your search
@@ -0,0 +1,38 @@
|
||||
# Production images, built in CI and identified by digest (D-R13, owner amendment of
|
||||
# 2026-10-12): the VPS pulls them and never compiles. Manual only (workflow_dispatch), never
|
||||
# on push: no publication or promotion of a production image without an explicit run and
|
||||
# a validation. Nothing here deploys; DEPLOY.md "Image deploy (prepared)" is the runbook.
|
||||
#
|
||||
# Secrets expected on the forge: REGISTRY (host, e.g. the Gitea container registry of this
|
||||
# forge), REGISTRY_USER, REGISTRY_TOKEN (write:package scope). Images are pushed as
|
||||
# <registry>/<namespace>/faunosteo_app:<sha> and faunosteo_worker:<sha>; the digests are
|
||||
# printed in the job summary and are what the VPS pins.
|
||||
name: release-images
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
sheet_bundle:
|
||||
description: 'SHEET_BUNDLE for the app image (none = production default, draft = preview)'
|
||||
required: false
|
||||
default: 'none'
|
||||
|
||||
jobs:
|
||||
images:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Registry login
|
||||
run: echo "${{ secrets.REGISTRY_TOKEN }}" | docker login "${{ secrets.REGISTRY }}" -u "${{ secrets.REGISTRY_USER }}" --password-stdin
|
||||
- name: Build and push the application image
|
||||
run: |
|
||||
image="${{ secrets.REGISTRY }}/${{ github.repository_owner }}/faunosteo_app:${{ github.sha }}"
|
||||
docker build --build-arg SHEET_BUNDLE="${{ github.event.inputs.sheet_bundle }}" -t "$image" .
|
||||
docker push "$image"
|
||||
echo "app: $(docker inspect --format='{{index .RepoDigests 0}}' "$image")" >> "$GITHUB_STEP_SUMMARY"
|
||||
- name: Build and push the worker image
|
||||
run: |
|
||||
image="${{ secrets.REGISTRY }}/${{ github.repository_owner }}/faunosteo_worker:${{ github.sha }}"
|
||||
docker build -f crates/worker/Dockerfile -t "$image" .
|
||||
docker push "$image"
|
||||
echo "worker: $(docker inspect --format='{{index .RepoDigests 0}}' "$image")" >> "$GITHUB_STEP_SUMMARY"
|
||||
Reference in new issue
Block a user