summaryrefslogtreecommitdiffstats
path: root/.github/workflows/doconfly.yml
diff options
context:
space:
mode:
authorDaniel Baumann <mail@daniel-baumann.ch>2022-06-19 07:06:18 +0000
committerDaniel Baumann <mail@daniel-baumann.ch>2022-06-19 07:06:18 +0000
commitd1a4b99d1127b881225cfb38f943493de1a042e3 (patch)
treee937c9ee98cc103a730cd74fc6566a7d904e02c4 /.github/workflows/doconfly.yml
parentAdding upstream version 0.1.2. (diff)
downloadpydyf-d1a4b99d1127b881225cfb38f943493de1a042e3.tar.xz
pydyf-d1a4b99d1127b881225cfb38f943493de1a042e3.zip
Adding upstream version 0.2.0.upstream/0.2.0
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
Diffstat (limited to '.github/workflows/doconfly.yml')
-rw-r--r--.github/workflows/doconfly.yml29
1 files changed, 29 insertions, 0 deletions
diff --git a/.github/workflows/doconfly.yml b/.github/workflows/doconfly.yml
new file mode 100644
index 0000000..cf2c1ca
--- /dev/null
+++ b/.github/workflows/doconfly.yml
@@ -0,0 +1,29 @@
+name: doconfly
+on:
+ push:
+ branches:
+ - master
+ tags:
+ - "*"
+
+jobs:
+ doconfly:
+ name: doconfly job
+ runs-on: ubuntu-latest
+ env:
+ PORT: ${{ secrets.PORT }}
+ SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
+ TAKOYAKI: ${{ secrets.TAKOYAKI }}
+ USER: ${{ secrets.USER }}
+ DOCUMENTATION_PATH: ${{ secrets.DOCUMENTATION_PATH }}
+ DOCUMENTATION_URL: ${{ secrets.DOCUMENTATION_URL }}
+ steps:
+ - run: |
+ which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )
+ eval $(ssh-agent -s)
+ echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add -
+ mkdir -p ~/.ssh
+ chmod 700 ~/.ssh
+ ssh-keyscan -p $PORT $TAKOYAKI >> ~/.ssh/known_hosts
+ chmod 644 ~/.ssh/known_hosts
+ ssh $USER@$TAKOYAKI -p $PORT "doconfly/doconfly.sh $GITHUB_REPOSITORY $GITHUB_REF $DOCUMENTATION_PATH $DOCUMENTATION_URL"