test deploy

master
greglebreton 2 years ago
parent edbede6ff3
commit 0d9772629d
  1. 58
      .drone.yml

@ -1,5 +1,5 @@
kind: pipeline kind: pipeline
name: mkdoc name: mkdocs
type: docker type: docker
platform: platform:
@ -12,25 +12,47 @@ trigger:
steps: steps:
- name: build docker image and push to registry - name: build
image: plugins/docker image: squidfunk/mkdocs-material:7.1.9
volumes: volumes:
- name: Dockerfile path - name: site
path: "/src" path: /site
- name: dockersock commands:
path: "/var/run/docker.sock" - pip install -U -r ./requirements.txt
- mkdocs build
# - name: build docker image and push to registry
# image: plugins/docker
# volumes:
# - name: Dockerfile path
# path: "/src"
# - name: dockersock
# path: "/var/run/docker.sock"
# settings:
# debug: true
# username:
# from_secret: REGISTRY_USER
# password:
# from_secret: REGISTRY_PASSWORD
# registry: "dockerregistry.gregandev.fr"
# insecure: true
# privileged: true
# repo: "dockerregistry.gregandev.fr/gregandoc"
# tags: ${DRONE_TAG}
# dockerfile: ./Dockerfile
- name: deploy
image: drillster/drone-rsync
settings: settings:
debug: true hosts: ["192.168.1.101"]
username: target: /home/gregan/workspace/mkdocs/doc
from_secret: REGISTRY_USER source: site/*
password: port:
from_secret: REGISTRY_PASSWORD from_secret: RSYNC_PORT
registry: "dockerregistry.gregandev.fr" user:
insecure: true from_secret: RSYNC_USER
privileged: true key:
repo: "dockerregistry.gregandev.fr/gregandoc" from_secret: RSYNC_SSH_KEY
tags: ${DRONE_TAG}
dockerfile: ./Dockerfile
- name: notification - name: notification
image: appleboy/drone-telegram image: appleboy/drone-telegram

Loading…
Cancel
Save