Add drone.yml
continuous-integration/drone Build is failing

This commit is contained in:
2026-03-24 09:07:57 +01:00
commit 7fcd12ae8b
+31
View File
@@ -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