loi_re/.drone.yml

62 lines
1.5 KiB
YAML
Raw Normal View History

2023-05-22 15:49:48 +02:00
---
# drone encrypt ResiLien/loi_re $AWS_ACCESS_KEY_ID
kind: secret
name: AWS_ACCESS_KEY_ID
data: 7xDOhroFzhF9AMnLnteYd+UBBmzSvgNW1nlhSZEoNMEzfL/E4MTykmgHKdQIPg+tNC7gRfz3
---
# drone encrypt ResiLien/loi_re $AWS_SECRET_ACCESS_KEY
kind: secret
name: AWS_SECRET_ACCESS_KEY
data: 9haqlgRCJ4W/wqmHVpJLOohv8kEQ+0hm83oECYcBpy7vdPoxT5vBQBFGpDnwenIbYX+7LNoJRl76E6mv1Q7olgxJh6DZtzCA9/00+LlH35DSVpWfqAYkRSdq6lo=
---
kind: pipeline
type: docker
name: production
steps:
- name: install npm
image: node:current-alpine
volumes:
- name: assets
path: /drone/src/node_modules
commands:
- npm install --ignore-scripts
- npm run test
- name: build website
image: jakejarvis/hugo-extended
environment:
AWS_ACCESS_KEY_ID:
from_secret: AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY:
from_secret: AWS_SECRET_ACCESS_KEY
volumes:
- name: assets
path: /drone/src/node_modules
- name: hugo-resources
path: /drone/src/resources
commands:
- hugo --gc --minify
- hugo deploy
- name: notify
image: plugins/matrix@sha256:f1affb31b0c86963c97c6f976fa0dcb3cc84272057fd8558d609d28b3064bd7f
settings:
homeserver: https://converser.eu
roomid: "QwOITmkKxRJJyCSDOZ:converser.eu"
userid: "resilien:converser.eu"
accesstoken:
from_secret: MATRIX_ACCESSTOKEN
when:
status: [ failure ]
volumes:
- name: assets
host:
path: /tmp/drone/cache/ResiLien/loi_re/node_modules
- name: hugo-resources
host:
path: /tmp/drone/cache/ResiLien/loi_re/resources