drone-ci build and push image step

master
greglebreton 2 years ago
parent b9f44c278f
commit 3b2935371d
  1. 34
      .drone.yml

@ -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

Loading…
Cancel
Save