From f395bc7d5a27bef745d26e2fc52cd521f047d728 Mon Sep 17 00:00:00 2001 From: gregandev Date: Tue, 20 Dec 2022 09:52:19 +0100 Subject: [PATCH] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'.drone.yml'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 42 ++++++++++++++++++++++++++++++++++++------ 1 file changed, 36 insertions(+), 6 deletions(-) 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