1
0
Fork 0
alnotz.fr/.woodpecker/deployment.yaml
2025-02-19 01:27:09 +01:00

16 lines
415 B
YAML

steps:
- name: Deployment
image: alpine:latest
commands:
- apk add openssh-client-default
- echo "$KEY" | tee .ssh/id_ed25519 >/dev/null
- ssh "$ADDRESS" "[ -d test ] || mkdir test"
- scp index.gmi "${ADDRESS}:test/index.html"
environment:
KEY:
from_secret: ssh_priv_key
ADDRESS:
from_secret: ssh_address
when:
event: tag
repo: Alnotz/alnotz.fr