2022-07-19 10:12:08 +02:00
|
|
|
---
|
2022-07-19 14:21:55 +02:00
|
|
|
# drone encrypt weko/sisa-urfe_fr $AWS_ACCESS_KEY_ID
|
|
|
|
kind: secret
|
|
|
|
name: STAGING_AWS_ACCESS_KEY_ID
|
|
|
|
data: Fj/s8kHdQ4V4YQJLqHNCdtIuPeTXQvRhcqZdJhD+fqvstpHxlARinrp2aB0pzRPmbG27u+Gp
|
2022-07-19 10:12:08 +02:00
|
|
|
|
2022-07-19 14:21:55 +02:00
|
|
|
---
|
|
|
|
# drone encrypt weko/jarnat $AWS_SECRET_ACCESS_KEY
|
|
|
|
kind: secret
|
|
|
|
name: STAGING_AWS_SECRET_ACCESS_KEY
|
|
|
|
data: cZ9+WkF1Q70ckB8ruLEcsKxeTw/sw33D7lMtpmTVjnojcLqUoOHx1arTzjtTSMrs7qXXOm6/xgqAcRqh1RPCRfW1RdVdeGHE84MQyTaU0ob+frzH8lNxCH+VMF0=
|
2022-07-19 10:12:08 +02:00
|
|
|
|
2022-07-19 14:21:55 +02:00
|
|
|
# ---
|
|
|
|
# kind: pipeline
|
|
|
|
# type: docker
|
|
|
|
# name: production
|
|
|
|
|
|
|
|
# platform:
|
|
|
|
# os: linux
|
|
|
|
# arch: arm64
|
|
|
|
|
|
|
|
# steps:
|
|
|
|
# - name: build
|
|
|
|
# image: klakegg/hugo:0.101.0-ext-debian-ci
|
|
|
|
# commands:
|
|
|
|
# - hugo --minify --environment production
|
|
|
|
# - name: deploy
|
|
|
|
# image: klakegg/hugo:0.101.0-ext-debian-ci
|
|
|
|
# commands:
|
2022-07-25 09:54:12 +02:00
|
|
|
# - hugo deploy --environment production
|
2022-07-19 10:12:08 +02:00
|
|
|
|
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: staging
|
|
|
|
|
|
|
|
platform:
|
|
|
|
os: linux
|
|
|
|
arch: arm64
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: build
|
|
|
|
image: klakegg/hugo:0.101.0-ext-debian-ci
|
|
|
|
commands:
|
2022-07-19 10:43:51 +02:00
|
|
|
- hugo --minify --buildDrafts --buildFuture --environment staging
|
2022-07-19 10:12:08 +02:00
|
|
|
- name: deploy
|
|
|
|
image: klakegg/hugo:0.101.0-ext-debian-ci
|
2022-07-19 14:21:55 +02:00
|
|
|
environment:
|
|
|
|
AWS_ACCESS_KEY_ID:
|
|
|
|
from_secret: STAGING_AWS_ACCESS_KEY_ID
|
|
|
|
AWS_SECRET_ACCESS_KEY:
|
|
|
|
from_secret: STAGING_AWS_SECRET_ACCESS_KEY
|
2022-07-19 10:12:08 +02:00
|
|
|
commands:
|
2022-07-25 09:54:12 +02:00
|
|
|
- hugo deploy --environment staging
|