diff options
author | Daniel Baumann <mail@daniel-baumann.ch> | 2022-06-19 07:06:18 +0000 |
---|---|---|
committer | Daniel Baumann <mail@daniel-baumann.ch> | 2022-06-19 07:06:18 +0000 |
commit | d1a4b99d1127b881225cfb38f943493de1a042e3 (patch) | |
tree | e937c9ee98cc103a730cd74fc6566a7d904e02c4 /.github/workflows/doconfly.yml | |
parent | Adding upstream version 0.1.2. (diff) | |
download | pydyf-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.yml | 29 |
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" |