Actualiser .drone.yml
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Grégory Lebreton 2025-07-02 15:00:34 +02:00
parent 16bf8923f1
commit 2aceec8161

View File

@ -10,28 +10,23 @@ trigger:
steps:
# BUILD
- name: build
image: squidfunk/mkdocs-material:9
pull: always
# BUILD AND PUSH
- name: build docker image and push to registry
image: plugins/docker
volumes:
- name: site
path: /drone/src/docs
commands:
- pip install -r requirements.txt && mkdocs build
# PUSH FILES TO SERVER
- name: deploy files on server
image: drillster/drone-rsync
- name: dockersock
path: "/var/run/docker.sock"
settings:
hosts:
from_secret: PROD2_HOST
target: /var/www/html/mkdoc/site
source: public/*
user:
from_secret: PROD2_USER
key:
from_secret: PROD2_PRIVATE_KEY
debug: true
username:
from_secret: REGISTRY_USER
password:
from_secret: REGISTRY_PASSWORD
registry: "dockerregistry.legaragenumerique.fr"
insecure: true
privileged: true
repo: "dockerregistry.legaragenumerique.fr/doc-garage"
dockerfile: ./Dockerfile
# TO CONFIG AND TEST - SEND MAIL NOTIF
- name: notify