summaryrefslogtreecommitdiffstats
path: root/StringTools
diff options
context:
space:
mode:
Diffstat (limited to 'StringTools')
-rw-r--r--StringTools/.drone.yml56
1 files changed, 56 insertions, 0 deletions
diff --git a/StringTools/.drone.yml b/StringTools/.drone.yml
new file mode 100644
index 0000000..54fa7d8
--- /dev/null
+++ b/StringTools/.drone.yml
@@ -0,0 +1,56 @@
+kind: pipeline
+type: kubernetes
+name: cicd-pipeline
+
+steps:
+ - name: Build docs
+ image: ubuntu
+ commands:
+ - apt-get update
+ - >-
+ apt-get
+ install
+ make
+ doxygen
+ graphviz
+ -y
+ - cd "StringTools/doxygen"
+ - make
+
+ - name: Deploy docs 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 "StringTools/doxygen"
+ - >-
+ rsync
+ -avz
+ --recursive
+ --delete
+ --delete-excluded
+ -e
+ "ssh -o IdentitiesOnly=yes -p 2222"
+ ./build/
+ doxygen-stringtools@leonetienne.de:app \ No newline at end of file