From 46e42eb1c4bd83ff3c358dfacdcda6424a14a5cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20B=C3=A4dorf?= Date: Mon, 14 Jun 2021 21:44:15 +0200 Subject: [PATCH] fix: Make ssh and config directories and set correct permissions first --- .drone.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index 6a614aec..a883b06f 100644 --- a/.drone.yml +++ b/.drone.yml @@ -9,6 +9,7 @@ steps: GITEA_SSH_KEY: from_secret: gitea_ssh_key commands: + - mkdir -p ~/.ssh - echo $GITEA_SSH_KEY > ~/.ssh/id_rsa - echo <> ~/.ssh/config + - chmod -R 600 ~/.ssh - git clone -b devos git@git.b12f.io:pub-solar/os - cd os - git remote add devos https://github.com/divnix/devos.git @@ -34,6 +36,7 @@ steps: GITEA_SSH_KEY: from_secret: gitea_ssh_key commands: + - mkdir -p ~/.ssh - echo $GITEA_SSH_KEY > ~/.ssh/id_rsa - echo <> ~/.ssh/config + - chmod -R 600 ~/.ssh - git clone -b core git@git.b12f.io:pub-solar/os - cd os - git fetch - git merge devos - git push origin core - - name: "Notify Success" + - name: "Notify success" image: plugins/matrix when: status: @@ -74,10 +78,11 @@ steps: TEA_CONFIG: from_secret: tea_config commands: + - mkdir -p ~/.config/tea - echo $TEA_CONFIG > ~/.config/tea/config.yml - tea pulls create --base core --head devos - - name: notify + - name: Notify failure image: plugins/matrix when: status: