This commit is contained in:
parent
8fc90d0783
commit
6319e8b0e6
73
.drone.yml
73
.drone.yml
@ -3,43 +3,52 @@ type: kubernetes
|
||||
name: cicd-pipeline
|
||||
|
||||
steps:
|
||||
- name: all-tmp
|
||||
image: ubuntu
|
||||
environment:
|
||||
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:
|
||||
- name: build
|
||||
image: ubuntu
|
||||
commands:
|
||||
- apt-get update
|
||||
- >-
|
||||
apt-get
|
||||
install
|
||||
openssh-client
|
||||
rsync
|
||||
make
|
||||
doxygen
|
||||
-y
|
||||
- cd "GCryptLib/doxygen"
|
||||
- make
|
||||
- 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
|
||||
- >-
|
||||
rsync
|
||||
-avz
|
||||
--recursive
|
||||
--delete
|
||||
--delete-excluded
|
||||
-e
|
||||
"ssh -o IdentitiesOnly=yes -p 2222"
|
||||
./build/
|
||||
doxygen-gcrypt@leonetienne.de:app
|
||||
|
||||
- name: deploy to production
|
||||
image: ubuntu
|
||||
environment:
|
||||
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
|
||||
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
|
||||
- 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
|
||||
|
Loading…
x
Reference in New Issue
Block a user