diff --git a/.drone.yml b/.drone.yml index a8be91d..a30c064 100644 --- a/.drone.yml +++ b/.drone.yml @@ -18,14 +18,20 @@ steps: - name: Update submodules image: registry.tobiasmanske.de/git:latest + environment: + SSH_KEY: + from_secret: CI_ssh_key commands: + - mkdir ~/.ssh + - echo "$SSH_KEY" > ~/.ssh/id_ed25519 + - chmod 700 ~/.ssh && chmod 600 ~/.ssh/id_ed25519 - git config user.name "Drone CI" - git config user.email "noreply@tobiasmanske.de" - git submodule update --init --recursive - git submodule update --remote --merge - git add -A - git commit -m "Update submodules from CI" - - git push + - git push -u origin main - name: Start buildpipeline image: plugins/downstream settings: