commit 7fcd12ae8b2be4f8c8ab3e70d40a9707b8550f17 Author: Sébastien Vallée Date: Tue Mar 24 09:07:57 2026 +0100 Add 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