From 5e23e95f20e2f9db3f9319f15e0d534908c0d52e Mon Sep 17 00:00:00 2001 From: Tobias Manske Date: Mon, 21 Aug 2023 16:20:49 +0200 Subject: [PATCH] fixup! fixup! fixup! Update submodules on pipeline run --- .drone.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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: