Added Woodpecker file
This commit is contained in:
parent
a24eb6019e
commit
706a88c528
1 changed files with 16 additions and 0 deletions
16
.woodpecker/deployment.yaml
Normal file
16
.woodpecker/deployment.yaml
Normal file
|
@ -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
|
Loading…
Add table
Reference in a new issue