+31
@@ -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
|
||||||
Reference in New Issue
Block a user