feat: Ajout de l'environement pour le site fourche
This commit is contained in:
parent
61bc2541f7
commit
6ff6c5229d
58
.drone.yml
58
.drone.yml
|
@ -58,6 +58,18 @@ kind: secret
|
||||||
name: DMH_AWS_SECRET_ACCESS_KEY
|
name: DMH_AWS_SECRET_ACCESS_KEY
|
||||||
data: sLiY4plTjS73Dzw0qHaAuSR4PiHGIhb6H2i1KyP2GpjvIDyaxbR2gjsjzn3E8e0gAtCiIM10nbvvAMvGmPoh1dLuYlmHj2YdOQA8wbjkA9jSqe9owbfxfrcEuDA=
|
data: sLiY4plTjS73Dzw0qHaAuSR4PiHGIhb6H2i1KyP2GpjvIDyaxbR2gjsjzn3E8e0gAtCiIM10nbvvAMvGmPoh1dLuYlmHj2YdOQA8wbjkA9jSqe9owbfxfrcEuDA=
|
||||||
|
|
||||||
|
---
|
||||||
|
# drone encrypt Weko/ceiba-scores $AWS_ACCESS_KEY_ID
|
||||||
|
kind: secret
|
||||||
|
name: FOURCHE_AWS_ACCESS_KEY_ID
|
||||||
|
data: GgpM5vSzE4N4ldcs+Db+sjG/siXmO+sYvw9DJYr0puAIv3jejlzwa3zJGcwGb2fmwCqyxied
|
||||||
|
|
||||||
|
---
|
||||||
|
# drone encrypt Weko/ceiba-scores $AWS_SECRET_ACCESS_KEY
|
||||||
|
kind: secret
|
||||||
|
name: FOURCHE_AWS_SECRET_ACCESS_KEY
|
||||||
|
data: rEE5ttbao6dla92YOw1vh1VE1sBWAjen+jfP/ZdUSDnFlkZKY56ms+V0jOReGulhwbVRxQijp1fTS43TW/vJbq3XSeTVUwDGTHLZFQ+yGObvr+4DKOVIRqp/rJE=
|
||||||
|
|
||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: docker
|
type: docker
|
||||||
|
@ -241,3 +253,49 @@ volumes:
|
||||||
- name: node_modules
|
- name: node_modules
|
||||||
host:
|
host:
|
||||||
path: /tmp/drone/cache/weko/dmh.ceiba-conseil.com/node_modules
|
path: /tmp/drone/cache/weko/dmh.ceiba-conseil.com/node_modules
|
||||||
|
|
||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
name: FOURCHE
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: install npm
|
||||||
|
image: node:current-alpine
|
||||||
|
volumes:
|
||||||
|
- name: node_modules
|
||||||
|
path: /drone/src/node_modules
|
||||||
|
commands:
|
||||||
|
- npm i
|
||||||
|
- npm run fetchData
|
||||||
|
- npm run lint
|
||||||
|
- apk add --no-cache jq
|
||||||
|
- echo $(cat src/data.json | jq -c '[.[3]]') > src/data.json
|
||||||
|
- npm run build
|
||||||
|
|
||||||
|
- name: deploy on s3
|
||||||
|
image: minio/mc
|
||||||
|
environment:
|
||||||
|
AWS_ACCESS_KEY_ID:
|
||||||
|
from_secret: FOURCHE_AWS_ACCESS_KEY_ID
|
||||||
|
AWS_SECRET_ACCESS_KEY:
|
||||||
|
from_secret: FOURCHE_AWS_SECRET_ACCESS_KEY
|
||||||
|
commands:
|
||||||
|
- mc alias set garage https://s3.garage.resilien.cloud $AWS_ACCESS_KEY_ID $AWS_SECRET_ACCESS_KEY --api S3v4
|
||||||
|
- mc mirror --overwrite /drone/src/dist garage/fourche.ceiba-conseil.com
|
||||||
|
|
||||||
|
- 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: node_modules
|
||||||
|
host:
|
||||||
|
path: /tmp/drone/cache/weko/fourche.ceiba-conseil.com/node_modules
|
||||||
|
|
Loading…
Reference in New Issue