22 lines
619 B
YAML
22 lines
619 B
YAML
# The DNS workflow, deployed by doco-cd like any stack: a push that changes dns/ rebuilds the image
|
|
# and reruns `tofu apply` once (restart: "no"). Its output is the record of each run:
|
|
# ssh fuckingtech.ch 'docker logs dns-apply-1'
|
|
# Plan only, by hand: ssh fuckingtech.ch 'docker run --rm -v /etc/head-vps/age.key:/run/secrets/age_key:ro -v dns_state:/state dns-apply plan'
|
|
services:
|
|
apply:
|
|
image: dns-apply
|
|
build:
|
|
context: .
|
|
restart: "no"
|
|
secrets:
|
|
- age_key
|
|
volumes:
|
|
- state:/state
|
|
|
|
secrets:
|
|
age_key:
|
|
file: /etc/head-vps/age.key
|
|
|
|
volumes:
|
|
state:
|
|
name: dns_state
|