maj drone.yml
continuous-integration/drone/push Build is failing Details

merge
Grégory Lebreton 9 months ago
parent c3cd98d4b7
commit 4cae3b7391

@ -1,37 +1,37 @@
kind: pipeline
name: hugo build and deploy
name: mkdocs build and deploy
type: docker
platform:
os: linux
arch: amd64
trigger:
branch:
- main
- greg
steps:
# GIT PULL
- name: git pull submodules
image: alpine/git
settings:
user:
from_secret: GIT_USER
password:
from_secret: GIT_PASSWORD
commands:
- git submodule update --init --recursive
# - name: git pull submodules
# image: alpine/git
# settings:
# user:
# from_secret: GIT_USER
# password:
# from_secret: GIT_PASSWORD
# commands:
# - git submodule update --init --recursive
# BUILD
- name: build
# ARM version of mkDocs
# image: ghcr.io/afritzler/mkdocs-material:8.1.0
image: mkdocs-material:1.0
image: squidfunk/mkdocs-material:9
pull: if-not-exists
volumes:
- name: site
path: /drone/src/docs
commands:
- cd doc && pip install -r requirements.txt && mkdocs build
- cd docs && pip install -r requirements.txt && mkdocs build
# PUSH FILES TO SERVER
- name: deploy files on server
@ -39,7 +39,7 @@ steps:
settings:
hosts: ["92.243.16.7"]
target: /var/www/html/mkdoc/site/
source: doc/*
source: public/*
port:
from_secret: RSYNC_SSH_PORT
user:

Loading…
Cancel
Save