Update .drone.yml
This commit is contained in:
18
.drone.yml
18
.drone.yml
@@ -7,19 +7,21 @@ platform:
|
|||||||
os: linux
|
os: linux
|
||||||
arch: arm64
|
arch: arm64
|
||||||
|
|
||||||
# Optional: control clone step
|
# Disable the built-in HTTPS clone, we'll do SSH manually
|
||||||
clone:
|
clone:
|
||||||
disable: false
|
disable: true
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: clone
|
- name: clone-repo
|
||||||
image: drone/git
|
image: alpine/git
|
||||||
# Uses built-in Drone authentication
|
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
|
- name: test
|
||||||
image: alpine
|
image: alpine
|
||||||
environment:
|
|
||||||
GIT_SSL_NO_VERIFY: "true"
|
|
||||||
commands:
|
commands:
|
||||||
- echo "pipeline running"
|
- echo "pipeline running"
|
||||||
|
|||||||
Reference in New Issue
Block a user