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: