From 84528457ac435c2293f5a5c3ce3f277c4e4bdee6 Mon Sep 17 00:00:00 2001 From: Simon C Date: Tue, 19 Jul 2022 10:43:51 +0200 Subject: [PATCH] =?UTF-8?q?Modification=20du=20d=C3=A9ploiement?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 8 ++++---- config/_default/config.yml | 6 +++++- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/.drone.yml b/.drone.yml index e9df372..f5eb4a7 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,7 +1,7 @@ --- kind: pipeline type: docker -name: prod +name: production platform: os: linux @@ -15,7 +15,7 @@ steps: - name: deploy image: klakegg/hugo:0.101.0-ext-debian-ci commands: - - hugo deploy + - hugo deploy --target=production --- kind: pipeline @@ -30,8 +30,8 @@ steps: - name: build image: klakegg/hugo:0.101.0-ext-debian-ci commands: - - hugo --minify --environment staging + - hugo --minify --buildDrafts --buildFuture --environment staging - name: deploy image: klakegg/hugo:0.101.0-ext-debian-ci commands: - - hugo deploy + - hugo deploy --target=staging diff --git a/config/_default/config.yml b/config/_default/config.yml index af6eeac..560ca61 100644 --- a/config/_default/config.yml +++ b/config/_default/config.yml @@ -146,7 +146,11 @@ Languages: deployment: targets: - - URL: >- + - name: production + URL: >- s3://jarnat.fr?endpoint=http://roquette.resilien:3900&disableSSL=true&s3ForcePathStyle=true®ion=garage + - name: staging + URL: >- + s3://staging.jarnat.fr?endpoint=http://roquette.resilien:3900&disableSSL=true&s3ForcePathStyle=true®ion=garage disableHugoGeneratorInject: true