jarnat/.drone.yml

106 lines
2.6 KiB
YAML

---
# 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
name: STAGING_AWS_ACCESS_KEY_ID
data: Fj/s8kHdQ4V4YQJLqHNCdtIuPeTXQvRhcqZdJhD+fqvstpHxlARinrp2aB0pzRPmbG27u+Gp
---
# drone encrypt Jarnat/jarnat $AWS_SECRET_ACCESS_KEY
kind: secret
name: STAGING_AWS_SECRET_ACCESS_KEY
data: cZ9+WkF1Q70ckB8ruLEcsKxeTw/sw33D7lMtpmTVjnojcLqUoOHx1arTzjtTSMrs7qXXOm6/xgqAcRqh1RPCRfW1RdVdeGHE84MQyTaU0ob+frzH8lNxCH+VMF0=
---
# drone encrypt Jarnat/jarnat $MATRIX_TOKEN
kind: secret
name: MATRIX_TOKEN
data: kTAKiGEpZMoAh4aTyCJN6DcmG218oG3MiTZ9DFGiZ8Tjs5IMoJOXgkiRudxauegTIWAYzM7bWxue7tN2yaB22uGzVle5YCg=
---
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
environment:
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
- name: notify
image: plugins/matrix
settings:
homeserver: https://converser.eu
roomid: "!QwOITmkKxRJJyCSDOZ:converser.eu"
userid: "@resilien:converser.eu"
accesstoken:
from_secret: MATRIX_TOKEN
when:
status: [ failure ]
trigger:
event:
- tag
---
kind: pipeline
type: docker
name: staging
platform:
os: linux
arch: arm64
steps:
- name: build
image: klakegg/hugo:0.101.0-ext-debian-ci
commands:
- hugo --minify --buildDrafts --buildFuture --environment staging
- name: deploy
image: klakegg/hugo:0.101.0-ext-debian-ci
environment:
AWS_ACCESS_KEY_ID:
from_secret: STAGING_AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY:
from_secret: STAGING_AWS_SECRET_ACCESS_KEY
commands:
- hugo deploy --environment staging
- name: notify
image: plugins/matrix
settings:
homeserver: https://converser.eu
roomid: "!QwOITmkKxRJJyCSDOZ:converser.eu"
userid: "@resilien:converser.eu"
accesstoken:
from_secret: MATRIX_TOKEN
when:
status: [ failure ]