ceiba-scores/.drone.yml

302 lines
8.3 KiB
YAML
Raw Normal View History

2022-03-30 00:08:30 +02:00
---
# drone encrypt Weko/ceiba-scores $DIRECTUS_URL
2022-03-30 00:08:30 +02:00
kind: secret
2022-12-08 12:10:07 +01:00
name: DIRECTUS_URL
data: Yt43FDPiKPUm3FGUBQvLh4GXGQ0ZP/DXRy38lVlhMX44hxB1W4TEkwpA8U0kRqc/tPfD65nGukzqlYM=
2022-03-30 00:08:30 +02:00
---
# drone encrypt Weko/ceiba-scores $DIRECTUS_TOKEN
2022-03-30 00:08:30 +02:00
kind: secret
2022-12-08 12:10:07 +01:00
name: DIRECTUS_TOKEN
data: 7rMRCcJgzLoMdBmynOIIXsmBtmNxrDbn+iOZSsEli/zjFTdPM3+doMxptIer/SGFCMUe8QqFN2AdA8DJ
2022-03-30 00:08:30 +02:00
---
# drone encrypt Weko/ceiba-scores $AWS_ACCESS_KEY_ID
2022-03-30 00:08:30 +02:00
kind: secret
2022-12-08 12:10:07 +01:00
name: STAGING_AWS_ACCESS_KEY_ID
data: DT//6Zq3wwIYrqs6dBgVCiuXhD8ullu4nd50KS8IqrfQmt2cFA4ViCBLT/zYv5m4yNjTxFIl
2022-03-30 00:08:30 +02:00
---
# drone encrypt Weko/ceiba-scores $AWS_SECRET_ACCESS_KEY
2022-03-30 00:08:30 +02:00
kind: secret
2022-12-08 12:10:07 +01:00
name: STAGING_AWS_SECRET_ACCESS_KEY
data: JlVsRo/U4AbQnuO4aNaXVqtest4J4lR2VFNJEjMI/02XNug3rRJy8ySriYCXwVZXXqJY5mrdonILOWnTr7qPNmJTHcYjAHVO2A5VeUhmI1XaV/hi4TM+4b6SwP4=
2022-03-30 00:08:30 +02:00
---
# drone encrypt Weko/ceiba-scores $AWS_ACCESS_KEY_ID
2022-03-30 00:08:30 +02:00
kind: secret
2022-12-08 12:10:07 +01:00
name: PRODUCTION_AWS_ACCESS_KEY_ID
data: AD1b96/pInoP19/bk9Nrp3vhFVcB+LLeZ6pkL4e76vtubcXaVIuSWovU8SzFFTWn3dODuRIS
2022-12-08 12:10:07 +01:00
---
# drone encrypt Weko/ceiba-scores $AWS_SECRET_ACCESS_KEY
2022-12-08 12:10:07 +01:00
kind: secret
name: PRODUCTION_AWS_SECRET_ACCESS_KEY
data: JX44CwSuvFmYhJCW+vxC4GmUKbO83VyYeImCvIgtkdeC1cRtNEgCA6gWoclT4vSBrk6AW6iQnh3MSpIhOERSn/prcWiTwbBn6YqdUaQ18B9/Dp3Qk1RtOkS2wKI=
2022-03-30 00:08:30 +02:00
2024-02-05 15:05:15 +01:00
---
# drone encrypt Weko/ceiba-scores $AWS_ACCESS_KEY_ID
kind: secret
2024-03-06 14:25:06 +01:00
name: TEST_AWS_ACCESS_KEY_ID
2024-02-05 15:05:15 +01:00
data: Bf6VZlmdGQGAOQtwtiOzRCqhnFaW310rw9LqMFVoaQBHiCbso23Zrt6G1N3J0nYGI/oLMhM3
---
# drone encrypt Weko/ceiba-scores $AWS_SECRET_ACCESS_KEY
kind: secret
2024-03-06 14:25:06 +01:00
name: TEST_AWS_SECRET_ACCESS_KEY
2024-02-05 15:05:15 +01:00
data: kIq0RuZPg2gSamnbei121OHNtupioEYyVay8CnNxNz+u0fEh0c1qnAKM506h+XbwMr+HDyQEUNDM09fqzM14xmRxz8EZtqg6hXVPUcfEIG9nXI9VtnCKMwoKTMQ=
---
# drone encrypt Weko/ceiba-scores $AWS_ACCESS_KEY_ID
kind: secret
name: DMH_AWS_ACCESS_KEY_ID
data: ZJi1IozPCoLgmwBnQy9OkOe7ByerC/b94aTNivtkAYh1K9A4WR+eXGNrbyXZci06HYjV8pBU
---
# drone encrypt Weko/ceiba-scores $AWS_SECRET_ACCESS_KEY
kind: secret
name: DMH_AWS_SECRET_ACCESS_KEY
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=
2024-04-30 00:15:32 +02:00
# ---
# kind: pipeline
# type: docker
# name: prod
# steps:
# - name: install npm
# image: node:20.12.2-alpine
# volumes:
# - name: node_modules
# path: /drone/src/node_modules
# commands:
# - npm i --include dev
# - npm run fetchData
# #- npm run lint
# - npm run build
# environment:
# NODE_ENV: 'production'
# - name: deploy on s3
# image: minio/mc
# environment:
# AWS_ACCESS_KEY_ID:
# from_secret: PRODUCTION_AWS_ACCESS_KEY_ID
# AWS_SECRET_ACCESS_KEY:
# from_secret: PRODUCTION_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/scores.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/scores.ceiba-conseil.com/node_modules
# ---
# kind: pipeline
# type: docker
# name: staging
# steps:
# - name: install npm
# image: node:20.12.2-alpine
# volumes:
# - name: node_modules
# path: /drone/src/node_modules
# commands:
# - npm i
# - npm run fetchData
# #- npm run lint
# - npm run build
# environment:
# NODE_ENV: 'staging'
# - name: deploy on s3
# image: minio/mc
# environment:
# AWS_ACCESS_KEY_ID:
# from_secret: STAGING_AWS_ACCESS_KEY_ID
# AWS_SECRET_ACCESS_KEY:
# from_secret: STAGING_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/staging.scores.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/staging.scores.ceiba-conseil.com/node_modules
# ---
# kind: pipeline
# type: docker
# name: test
# steps:
# - name: install npm
# image: node:20.12.2-alpine
# volumes:
# - name: node_modules
# path: /drone/src/node_modules
# commands:
# - npm i
# - npm run fetchData
# #- npm run lint
# - npm run build
# environment:
# NODE_ENV: 'test'
# - name: deploy on s3
# image: minio/mc
# environment:
# AWS_ACCESS_KEY_ID:
# from_secret: TEST_AWS_ACCESS_KEY_ID
# AWS_SECRET_ACCESS_KEY:
# from_secret: TEST_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/test.scores.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/test.scores.ceiba-conseil.com/node_modules
# ---
# kind: pipeline
# type: docker
# name: DMH
# steps:
# - name: install npm
# image: node:20.12.2-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 '[.[4]]') > src/data.json
# - npm run build
# - name: deploy on s3
# image: minio/mc
# environment:
# AWS_ACCESS_KEY_ID:
# from_secret: DMH_AWS_ACCESS_KEY_ID
# AWS_SECRET_ACCESS_KEY:
# from_secret: DMH_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/dmh.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/dmh.ceiba-conseil.com/node_modules
---
kind: pipeline
type: docker
name: FOURCHE
steps:
- name: install npm
2024-04-30 00:03:01 +02:00
image: node:20.12.2-alpine
volumes:
- name: node_modules
path: /drone/src/node_modules
commands:
- npm i
- npm run fetchData
2024-04-30 00:15:32 +02:00
#- 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