diff --git a/.woodpecker/deployment.yaml b/.woodpecker/deployment.yaml new file mode 100644 index 0000000..a081f66 --- /dev/null +++ b/.woodpecker/deployment.yaml @@ -0,0 +1,16 @@ +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