Files
homepage/deploy/static.yml
T
Mateusz PstruchaandClaude Opus 5.5 c1da26d973
CI / build (push) Successful in 35s
Release / release (push) Successful in 22s
Release / deploy (push) Successful in 15s
ci: release on tags and deploy to www.mtps.pl
Mirror iledopapiezowej/frontend: CI on master and PRs, versioned release
assets on v* tags, then deploy through ygg/actions/deploy.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 16:12:10 +02:00

37 lines
1.2 KiB
YAML

---
# Static site: https://git.app.ygg/mtps/homepage
#
# 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 (homepage-<version>.tgz), and static-server only
# auto-detects *.tar.gz, so the asset is named explicitly.
static_stack_name: homepage
domain: www.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/homepage"
GITEA_RELEASE: "v{{ static_release }}"
GITEA_ASSET_NAME: "homepage-{{ 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: 11903
protocol: tcp
mode: ingress
replicas: 3
restart_policy:
condition: on-failure