GCrypt/.drone.yml

37 lines
897 B
YAML
Raw Normal View History

2022-10-25 20:10:42 +00:00
kind: pipeline
type: kubernetes
name: cicd-pipeline
steps:
- name: all-tmp
image: ubuntu
2022-10-25 20:13:47 +00:00
environment:
SSH_PRIV:
from_secret: ssh-priv
SSH_PUB:
from_secret: ssh-pub
2022-10-25 20:10:42 +00:00
commands:
2022-10-25 20:45:56 +00:00
- cd "GCryptLib/doxygen"
2022-10-25 20:18:17 +00:00
- apt-get update
2022-10-25 20:42:58 +00:00
- >-
apt-get
install
openssh-client
rsync
-y
2022-10-25 20:10:42 +00:00
- eval "$(ssh-agent -s)"
2022-10-25 20:18:17 +00:00
- mkdir -p ~/.ssh
2022-10-25 20:41:05 +00:00
- echo "$SSH_PRIV" > ~/.ssh/id_ed25519
- echo "$SSH_PUB" > ~/.ssh/id_ed25519.pub
- chmod 600 ~/.ssh/id_ed25519
- chmod 644 ~/.ssh/id_ed25519.pub
2022-10-25 20:36:37 +00:00
- ssh-add
2022-10-25 20:45:56 +00:00
- >-
rsync_options=(
-avz
--recursive
--delete
--delete-excluded
)
- rsync "${rsync_options[@]}" -e "ssh -o IdentitiesOnly=yes" ./ doxygen-gcrypt@leonetienne.de:app