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

This commit is contained in:
Grégory Lebreton 2024-01-09 12:08:48 +01:00
parent c3cd98d4b7
commit 4cae3b7391

View File

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