From 7fcd12ae8b2be4f8c8ab3e70d40a9707b8550f17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Vall=C3=A9e?= Date: Tue, 24 Mar 2026 09:07:57 +0100 Subject: [PATCH] Add drone.yml --- .drone.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..9903c60 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,31 @@ +kind: pipeline +type: docker +name: pull-build-and-push + +steps: + - name: clone-external-repo + image: alpine/git + commands: + - git clone https://github.com/The-ReNaGe/RideLog.git /drone/src/repo-distant + - cd /drone/src/repo-distant + - git checkout main # ou la branche souhaitée + environment: + GIT_USERNAME: + from_secret: git_username + GIT_TOKEN: + from_secret: git_token + + - name: build-and-push-docker + image: plugins/docker + settings: + registry: registry.svallee.fr + repo: registry.svallee.fr/The-ReNaGe/RideLog + tags: + - latest + - ${DRONE_COMMIT_SHA:0:8} + username: + from_secret: docker_username + password: + from_secret: docker_password + dockerfile: repo-distant/Dockerfile + context: repo-distant \ No newline at end of file