diapos.resilien.fr/.drone.yml

44 lines
995 B
YAML
Raw Normal View History

2023-07-07 12:08:18 +02:00
---
2023-07-17 16:52:54 +02:00
# drone encrypt ResiLien/diapos.resilien.fr $AWS_ACCESS_KEY_ID
2023-07-07 12:08:18 +02:00
kind: secret
name: PRODUCTION_AWS_ACCESS_KEY_ID
2023-07-17 16:52:54 +02:00
data: peLWdXK9rRiMRBw2NBvySOhPLgHnvUFhjOVba5TU/EO7RtBehpYHgM2xKp0vGtBpSLmOtb58
2023-07-07 12:08:18 +02:00
---
2023-07-17 16:52:54 +02:00
# drone encrypt ResiLien/diapos.resilien.fr $AWS_SECRET_ACCESS_KEY
2023-07-07 12:08:18 +02:00
kind: secret
name: PRODUCTION_AWS_SECRET_ACCESS_KEY
2023-07-17 16:52:54 +02:00
data: PekHO+HCtsC8nqfLHGqYwMbo5NEiEVMEYJaYExmf0kr7QEtvqqXQlNtobzY820BWP66g4uUe/tz0RNcZlRBb+vlNLemvvAdNO5s4elrTLNOXan92rRbgJzSegkw=
2023-07-07 12:08:18 +02:00
---
kind: pipeline
type: docker
name: prod
steps:
- name: install submodule
image: drone/git
commands:
- git submodule update --init
- name: build website
2023-07-17 16:52:54 +02:00
image: klakegg/hugo:0.111.3-ext-debian-ci
2023-07-07 12:08:18 +02:00
commands:
- hugo --minify
- name: deploy
2023-07-17 16:52:54 +02:00
image: klakegg/hugo:0.111.3-ext-debian-ci
2023-07-07 12:08:18 +02:00
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:
2023-07-17 16:52:54 +02:00
- main