Mise en place du déploiement automatique de la production

This commit is contained in:
Simon 2022-09-09 17:05:43 +02:00
parent 04bf002fbc
commit be81400c26
1 changed files with 39 additions and 18 deletions

View File

@ -1,33 +1,54 @@
--- ---
# drone encrypt weko/sisa-urfe_fr $AWS_ACCESS_KEY_ID # drone encrypt Jarnat/jarnat $AWS_ACCESS_KEY_ID
kind: secret
name: PRODUCTION_AWS_ACCESS_KEY_ID
data: UoUtfAK67HGPeZHY7jOwi0wXeQVjJeaPP7COGDbQ24Uq5exuuv0/e+aVQitPUkpOcTiBuDH1
---
# drone encrypt Jarnat/jarnat $AWS_SECRET_ACCESS_KEY
kind: secret
name: PRODUCTION_AWS_SECRET_ACCESS_KEY
data: 2xgKaj9MXtc1NiyPLeIRCOLRVYjl7EKCxgUANr+tfrKQdtFk6ey5vAF9u42CLK9QcztSJ7rf3IK9k8/UskAf5/Ytj8jwjHTsxSZrAAm74Sv9c+XS2M1MSGSTEjY=
---
# drone encrypt Jarnat/jarnat $AWS_ACCESS_KEY_ID
kind: secret kind: secret
name: STAGING_AWS_ACCESS_KEY_ID name: STAGING_AWS_ACCESS_KEY_ID
data: Fj/s8kHdQ4V4YQJLqHNCdtIuPeTXQvRhcqZdJhD+fqvstpHxlARinrp2aB0pzRPmbG27u+Gp data: Fj/s8kHdQ4V4YQJLqHNCdtIuPeTXQvRhcqZdJhD+fqvstpHxlARinrp2aB0pzRPmbG27u+Gp
--- ---
# drone encrypt weko/jarnat $AWS_SECRET_ACCESS_KEY # drone encrypt Jarnat/jarnat $AWS_SECRET_ACCESS_KEY
kind: secret kind: secret
name: STAGING_AWS_SECRET_ACCESS_KEY name: STAGING_AWS_SECRET_ACCESS_KEY
data: cZ9+WkF1Q70ckB8ruLEcsKxeTw/sw33D7lMtpmTVjnojcLqUoOHx1arTzjtTSMrs7qXXOm6/xgqAcRqh1RPCRfW1RdVdeGHE84MQyTaU0ob+frzH8lNxCH+VMF0= data: cZ9+WkF1Q70ckB8ruLEcsKxeTw/sw33D7lMtpmTVjnojcLqUoOHx1arTzjtTSMrs7qXXOm6/xgqAcRqh1RPCRfW1RdVdeGHE84MQyTaU0ob+frzH8lNxCH+VMF0=
# --- ---
# kind: pipeline kind: pipeline
# type: docker type: docker
# name: production name: production
# platform: platform:
# os: linux os: linux
# arch: arm64 arch: arm64
# steps: steps:
# - name: build - name: build
# image: klakegg/hugo:0.101.0-ext-debian-ci image: klakegg/hugo:0.101.0-ext-debian-ci
# commands: commands:
# - hugo --minify --environment production - hugo --minify --environment production
# - name: deploy - name: deploy
# image: klakegg/hugo:0.101.0-ext-debian-ci image: klakegg/hugo:0.101.0-ext-debian-ci
# commands: environment:
# - hugo deploy --environment production AWS_ACCESS_KEY_ID:
from_secret: PRODUCTION_AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY:
from_secret: PRODUCTION_AWS_SECRET_ACCESS_KEY
commands:
- hugo deploy --environment production
trigger:
event:
- tag
--- ---
kind: pipeline kind: pipeline