Files
ig.mtps.pl/deploy/static.yml
T
Mateusz PstruchaandClaude Opus 5.5 076845d0ea Site content and deployment for ig.mtps.pl
Builds mtps/folio at a pinned tag against this repo's photos/ and
profile/ and deploys the release with ygg/static-server, taking over the
stack that was released from mtps/folio.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-19 22:45:46 +02:00

39 lines
1.4 KiB
YAML

---
# Static site: https://git.app.ygg/mtps/ig.mtps.pl, built with mtps/folio
#
# Deployed by .gitea/workflows/release.yml through ygg/actions/deploy
# (deploy/static playbook on kara).
#
# static_release is passed by the release workflow (-e static_release=1.2.3).
# For a manual run pass it the same way, there's deliberately no default here.
# Release assets are versioned (ig.mtps.pl-<version>.tgz), and static-server
# only auto-detects *.tar.gz, so the asset is named explicitly.
# kept from when the site was released from mtps/folio, so deploys update
# that stack instead of starting a second one on the same port
static_stack_name: folio
domain: ig.mtps.pl
# /etc/nginx/certs/<cert>.conf on the nginx host
cert: mtps.pl
# static_service replaces the role default as a whole, so every key is required
static_service:
name: static
image: "{{ gitea_host }}/ygg/static-server:latest"
environment:
GITEA_REPOSITORY_URL: "https://{{ gitea_host }}/mtps/ig.mtps.pl"
GITEA_RELEASE: "v{{ static_release }}"
GITEA_ASSET_NAME: "ig.mtps.pl-{{ static_release }}.tgz"
SSL_CERT_FILE: /etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem
volumes:
- /etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem:/etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem:ro
ports:
- target: 8080
published: 11904
protocol: tcp
mode: ingress
replicas: 3
restart_policy:
condition: on-failure