37 lines
897 B
YAML
37 lines
897 B
YAML
kind: pipeline
|
|
type: kubernetes
|
|
name: cicd-pipeline
|
|
|
|
steps:
|
|
- name: all-tmp
|
|
image: ubuntu
|
|
environment:
|
|
SSH_PRIV:
|
|
from_secret: ssh-priv
|
|
SSH_PUB:
|
|
from_secret: ssh-pub
|
|
commands:
|
|
- cd "GCryptLib/doxygen"
|
|
- apt-get update
|
|
- >-
|
|
apt-get
|
|
install
|
|
openssh-client
|
|
rsync
|
|
-y
|
|
- eval "$(ssh-agent -s)"
|
|
- mkdir -p ~/.ssh
|
|
- echo "$SSH_PRIV" > ~/.ssh/id_ed25519
|
|
- echo "$SSH_PUB" > ~/.ssh/id_ed25519.pub
|
|
- chmod 600 ~/.ssh/id_ed25519
|
|
- chmod 644 ~/.ssh/id_ed25519.pub
|
|
- ssh-add
|
|
- >-
|
|
rsync_options=(
|
|
-avz
|
|
--recursive
|
|
--delete
|
|
--delete-excluded
|
|
)
|
|
- rsync "${rsync_options[@]}" -e "ssh -o IdentitiesOnly=yes" ./ doxygen-gcrypt@leonetienne.de:app
|