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: