43 lines
924 B
YAML
43 lines
924 B
YAML
---
|
|
# drone encrypt kosssi/zebra.life $AWS_ACCESS_KEY_ID
|
|
kind: secret
|
|
name: PRODUCTION_AWS_ACCESS_KEY_ID
|
|
data: /SD/FNPyIA+RFjRlG6Fv07pvL69oJSrZ8bedU+B3xMhFWq/KkGxW4iFRQlTiPah8Ah8RmZsS
|
|
|
|
---
|
|
# drone encrypt kosssi/zebra.life $AWS_SECRET_ACCESS_KEY
|
|
kind: secret
|
|
name: PRODUCTION_AWS_SECRET_ACCESS_KEY
|
|
data: pP6xanltH9bamwETzJ1ZwJ1gJWyd2VpgolZ/KVP+obrwpkX6pjVNdlhXxfGrq3ks5wY+7qBP5Bu8WZpiNRc/gPKkvHCD32W0e8U3icOD1Xk02Zkldd4srO2V8Q0=
|
|
|
|
---
|
|
kind: pipeline
|
|
type: docker
|
|
name: prod
|
|
|
|
platform:
|
|
os: linux
|
|
arch: arm64
|
|
|
|
steps:
|
|
- name: build website
|
|
image: klakegg/hugo:0.107.0-ext-debian-ci
|
|
commands:
|
|
- hugo --minify
|
|
|
|
- name: deploy
|
|
image: klakegg/hugo:0.107.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
|
|
|
|
trigger:
|
|
event:
|
|
- push
|
|
branch:
|
|
- master
|