diff --git a/.drone.yml b/.drone.yml index a9f1a5c..97385c8 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,13 +1,43 @@ ---- kind: pipeline +name: hugo type: docker -name: default +platform: + os: linux + arch: arm64 trigger: branch: - master - steps: -- name: Version check - image: jguyomard/hugo-builder +- name: git pull submodules + image: alpine/git + settings: + user: + from_secret: GIT_USER + password: + from_secret: GIT_PASSWORD commands: - - echo "Checking Hugo version." \ No newline at end of file + - git submodule update --init --recursive +- name: build hugo site + image: plugins/hugo + settings: + hugo_version: 0.69.0 + theme: ameida-cv + extended: true + validate: true + config: config.toml + content: content + output: ./public + commands: + - apk add libc6-compat libstdc++ + - /bin/hugo +- name: deploy + image: drillster/drone-rsync # image docker permettant d'utiliser rsync pour déployer des fichiers sur un ou plusieurs hôtes + settings: + hosts: ["192.168.1.100"] + target: /var/www/html/hugo-cv + source: public/* + port: 2021 + user: + from_secret: RSYNC_USER + key: + from_secret: RSYNC_SSH_KEY