portails/.drone.yml

31 lines
940 B
YAML

---
# drone encrypt ResiLien/portails $AWS_ACCESS_KEY_ID
kind: secret
name: P4PILLON_AWS_ACCESS_KEY_ID
data: XY87aSNvLDeNNSMT1xHmVUTWXSpXJORM/P8RCRmsVWtByyefTbXX1cF0A4EuokVbOJs0DJZs
---
# drone encrypt ResiLien/portails $AWS_SECRET_ACCESS_KEY
kind: secret
name: P4PILLON_AWS_SECRET_ACCESS_KEY
data: 58Boc2Ux7MKwvh1nHh2xmY4JEje5CyX0/H/z6tM/ehLD1m4WQKblvc/+PX0DcaFqX86JPG8osLRsglkP9pyW7iH5WwuMQcXR/NzOAJioO+xgrh/14qUCYe+N5Yc=
---
kind: pipeline
type: docker
name: P4Pillon
steps:
- name: Installation des dépendances & construction du site
image: hugomods/hugo:exts-0.123.8
environment:
AWS_ACCESS_KEY_ID:
from_secret: P4PILLON_AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY:
from_secret: P4PILLON_AWS_SECRET_ACCESS_KEY
commands:
- npm install --ignore-scripts
- hugo --minify --environment apps.p4pillon.org
- hugo --minify --environment apps.p4pillon.org
- hugo deploy --environment apps.p4pillon.org