Update '.drone.yml'
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Leon Etienne 2022-10-25 21:35:39 +00:00
parent 8fc90d0783
commit 6319e8b0e6

View File

@ -3,43 +3,52 @@ type: kubernetes
name: cicd-pipeline name: cicd-pipeline
steps: steps:
- name: all-tmp - name: build
image: ubuntu image: ubuntu
environment: commands:
SSH_PRIV:
from_secret: ssh-priv
SSH_PUB:
from_secret: ssh-pub
KNOWN_HOSTS:
from_secret: known-hosts # this is just $(ssh-keyscan -p 2222 leonetienne.de)
commands:
- apt-get update - apt-get update
- >- - >-
apt-get apt-get
install
openssh-client
rsync
make make
doxygen doxygen
-y -y
- cd "GCryptLib/doxygen" - cd "GCryptLib/doxygen"
- make - make
- eval "$(ssh-agent -s)"
- mkdir -p ~/.ssh - name: deploy to production
- echo "$SSH_PRIV" > ~/.ssh/id_ed25519 image: ubuntu
- echo "$SSH_PUB" > ~/.ssh/id_ed25519.pub environment:
- echo "$KNOWN_HOSTS" > ~/.ssh/known_hosts SSH_PRIV:
- chmod 600 ~/.ssh/id_ed25519 from_secret: ssh-priv
- chmod 644 ~/.ssh/id_ed25519.pub SSH_PUB:
- chmod 644 ~/.ssh/known_hosts from_secret: ssh-pub
- ssh-add KNOWN_HOSTS:
- >- from_secret: known-hosts # this is just $(ssh-keyscan -p 2222 leonetienne.de)
rsync commands:
-avz - apt-get update
--recursive - >-
--delete apt-get
--delete-excluded install
-e openssh-client
"ssh -o IdentitiesOnly=yes -p 2222" rsync
./build/ -y
doxygen-gcrypt@leonetienne.de:app - eval "$(ssh-agent -s)"
- mkdir -p ~/.ssh
- echo "$SSH_PRIV" > ~/.ssh/id_ed25519
- echo "$SSH_PUB" > ~/.ssh/id_ed25519.pub
- echo "$KNOWN_HOSTS" > ~/.ssh/known_hosts
- chmod 600 ~/.ssh/id_ed25519
- chmod 644 ~/.ssh/id_ed25519.pub
- chmod 644 ~/.ssh/known_hosts
- ssh-add
- cd "GCryptLib/doxygen"
- >-
rsync
-avz
--recursive
--delete
--delete-excluded
-e
"ssh -o IdentitiesOnly=yes -p 2222"
./build/
doxygen-gcrypt@leonetienne.de:app