GCrypt/.drone.yml

46 lines
1.1 KiB
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 21:01:08 +00:00
KNOWN_HOSTS:
2022-10-25 21:22:44 +00:00
from_secret: known-hosts # this is just $(ssh-keyscan -p 2222 leonetienne.de)
2022-10-25 20:10:42 +00:00
commands:
2022-10-25 20:18:17 +00:00
- apt-get update
2022-10-25 20:42:58 +00:00
- >-
apt-get
2022-10-25 20:53:45 +00:00
install
openssh-client
rsync
2022-10-25 21:24:17 +00:00
make
doxygen
2022-10-25 20:53:45 +00:00
-y
2022-10-25 21:24:17 +00:00
- cd "GCryptLib/doxygen"
- make
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
2022-10-25 21:01:08 +00:00
- echo "$KNOWN_HOSTS" > ~/.ssh/known_hosts
2022-10-25 20:41:05 +00:00
- chmod 600 ~/.ssh/id_ed25519
- chmod 644 ~/.ssh/id_ed25519.pub
2022-10-25 21:01:08 +00:00
- chmod 644 ~/.ssh/known_hosts
2022-10-25 20:36:37 +00:00
- ssh-add
2022-10-25 20:45:56 +00:00
- >-
2022-10-25 20:53:08 +00:00
rsync
2022-10-25 20:53:45 +00:00
-avz
--recursive
--delete
--delete-excluded
-e
2022-10-25 21:20:51 +00:00
"ssh -o IdentitiesOnly=yes -p 2222"
2022-10-25 21:24:17 +00:00
./build/
2022-10-25 21:20:51 +00:00
doxygen-gcrypt@leonetienne.de:app