From a174d8a601cb7f6fb84768be403ca7c1ad452815 Mon Sep 17 00:00:00 2001 From: Jim Martens Date: Tue, 15 Aug 2023 00:51:10 +0200 Subject: [PATCH] Manually checkout repo --- .drone.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 23f68f6..ca59590 100644 --- a/.drone.yml +++ b/.drone.yml @@ -44,9 +44,19 @@ platform: arch: arm64 clone: - skip_verify: true + disable: true steps: + - name: clone + environment: + SSH_KEY: + from_secret: ssh_key + commands: + - echo "$SSH_KEY" > $HOME/.ssh/id_ed25519 + - chmod 600 $HOME/.ssh/known_hosts + - ssh-keyscan -H giteajim@git.2martens.de > ~/.ssh/known_hosts 2> /dev/null + - git clone ssh://giteajim@git.2martens.de:22/2martens/wahlrecht.git . + - git checkout $DRONE_COMMIT - name: build Docker container image: gradle:8.2-jdk17 environment: