diff --git a/.drone.yml b/.drone.yml index 81b5d24..c96d1b8 100644 --- a/.drone.yml +++ b/.drone.yml @@ -7,19 +7,21 @@ platform: os: linux arch: arm64 -# Optional: control clone step +# Disable the built-in HTTPS clone, we'll do SSH manually clone: - disable: false + disable: true steps: - - name: clone - image: drone/git - # Uses built-in Drone authentication + - name: clone-repo + image: alpine/git + environment: + # Use the mounted SSH key + GIT_SSH_COMMAND: "ssh -i /drone-ssh/id_ed25519 -o StrictHostKeyChecking=accept-new" + commands: + - echo "Cloning repository via SSH..." + - git clone git@gitea.aetoskia.com:apps/cicd.git -steps: - name: test image: alpine - environment: - GIT_SSL_NO_VERIFY: "true" commands: - echo "pipeline running"