drone-ci build and push image step
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone Build is failing

This commit is contained in:
greglebreton 2023-01-04 21:48:29 +01:00
parent b9f44c278f
commit 3b2935371d

View File

@ -12,23 +12,25 @@ trigger:
steps: steps:
- name: mkdocs build - name: build docker image and push to registry
image: titom73/mkdocs image: plugins/docker
output: ./site volumes:
command: ["mkdocs build"] - name: Dockerfile path
path: "/src"
- name: deploy on server - name: dockersock
image: drillster/drone-rsync path: "/var/run/docker.sock"
settings: settings:
hosts: ["192.168.1.101"] debug: true
target: /var/www/html/mkdocs/doc/site username:
source: site/* from_secret: REGISTRY_USER
port: password:
from_secret: RSYNC_PORT from_secret: REGISTRY_PASSWORD
user: registry: "dockerregistry.gregandev.fr"
from_secret: RSYNC_USER insecure: true
key: privileged: true
from_secret: RSYNC_SSH_KEY_STACK repo: "dockerregistry.gregandev.fr/gregandoc"
tags: ${DRONE_TAG}
dockerfile: ./Dockerfile
- name: notification - name: notification
image: appleboy/drone-telegram image: appleboy/drone-telegram