2022-03-30 00:08:30 +02:00
|
|
|
---
|
2022-12-08 12:10:07 +01:00
|
|
|
# drone encrypt weko/scores.ceiba-conseil.com $DIRECTUS_URL
|
2022-03-30 00:08:30 +02:00
|
|
|
kind: secret
|
2022-12-08 12:10:07 +01:00
|
|
|
name: DIRECTUS_URL
|
|
|
|
data: Z1mUl3LdiVP6vClaVeA56nTafKHIevYaRKqqYDKycN5im+M93XvrZbK995EDreb4cttMD1jMmJaq3NQ=
|
2022-03-30 00:08:30 +02:00
|
|
|
|
|
|
|
---
|
2022-12-08 12:10:07 +01:00
|
|
|
# drone encrypt weko/scores.ceiba-conseil.com $DIRECTUS_TOKEN
|
2022-03-30 00:08:30 +02:00
|
|
|
kind: secret
|
2022-12-08 12:10:07 +01:00
|
|
|
name: DIRECTUS_TOKEN
|
|
|
|
data: C4N8jh2kDORa5vo2mqOcqbBLLBXdcnHNDq9sK6+R9gzemeyzLp3K7ENw5ZibVYAJ2VEYylQr9zvHFeFE
|
2022-03-30 00:08:30 +02:00
|
|
|
|
|
|
|
---
|
2022-12-08 12:10:07 +01:00
|
|
|
# drone encrypt weko/scores.ceiba-conseil.com $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: vlodnMDH4TJTqTBLYgZYq/O5U4IoFl3LGv12aNGRZr39v+tDDaBdB08duY7rXQ3yHnbrXihO
|
2022-03-30 00:08:30 +02:00
|
|
|
|
|
|
|
---
|
2022-12-08 12:10:07 +01:00
|
|
|
# drone encrypt weko/scores.ceiba-conseil.com $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: REEeUiOcy6dtO3fHB5hqZ17aR+YJm3vGkS0tVTdL3Oy32Og+8hFunRZ3Ym7qkrkw8C0JKAhk22traNWEGzPZcb9rzMb25tRRXZC0GdVd+9bvKOMcCYTvBk2hjWI=
|
2022-03-30 00:08:30 +02:00
|
|
|
|
|
|
|
---
|
2022-12-08 12:10:07 +01:00
|
|
|
# drone encrypt weko/scores.ceiba-conseil.com $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: hLqwvfjql+mwZ1ES4bLpAHgll1GE5a0Yq6H+MoOwtpxr0PINxDeOWYKI0CNoXtnG3sbWtjlm
|
|
|
|
|
|
|
|
---
|
|
|
|
# drone encrypt weko/scores.ceiba-conseil.com $AWS_SECRET_ACCESS_KEY
|
|
|
|
kind: secret
|
|
|
|
name: PRODUCTION_AWS_SECRET_ACCESS_KEY
|
|
|
|
data: vlXPN/c+WnEMpEbSBPDVCFJFNKy/RIP7oRXW4WsPpv+FhER4lG/1m2dWUPfagHCsdHptN60yfZya3GkZO4DW3lmpfuQGvTu9rkYDZMv2PiWBjX7lyTdmM+oLzIs=
|
2022-03-30 00:08:30 +02:00
|
|
|
|
2022-04-05 15:46:38 +02:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: prod
|
|
|
|
|
|
|
|
platform:
|
|
|
|
os: linux
|
|
|
|
arch: arm64
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: install npm
|
|
|
|
image: node:current-alpine
|
|
|
|
volumes:
|
|
|
|
- name: node_modules
|
|
|
|
path: /drone/src/node_modules
|
|
|
|
commands:
|
|
|
|
- npm i
|
|
|
|
- npm run fetchData
|
2022-04-06 14:29:04 +02:00
|
|
|
- npm run lint
|
2022-04-05 15:46:38 +02:00
|
|
|
- npm run build
|
|
|
|
|
2022-12-08 12:10:07 +01:00
|
|
|
- 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:
|
2023-01-17 11:10:51 +01:00
|
|
|
- mc alias set garage https://s3.garage.resilien.cloud $AWS_ACCESS_KEY_ID $AWS_SECRET_ACCESS_KEY --api S3v4
|
2022-12-08 12:10:07 +01:00
|
|
|
- mc mirror --overwrite /drone/src/dist garage/scores.ceiba-conseil.com
|
2022-04-05 15:46:38 +02:00
|
|
|
|
2023-01-17 11:11:29 +01:00
|
|
|
- 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 ]
|
|
|
|
|
2022-04-05 15:46:38 +02:00
|
|
|
volumes:
|
|
|
|
- name: node_modules
|
|
|
|
host:
|
|
|
|
path: /tmp/drone/cache/weko/scores.ceiba-conseil.com/node_modules
|
2022-03-30 00:08:30 +02:00
|
|
|
|
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: staging
|
|
|
|
|
|
|
|
platform:
|
|
|
|
os: linux
|
|
|
|
arch: arm64
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: install npm
|
|
|
|
image: node:current-alpine
|
|
|
|
volumes:
|
|
|
|
- name: node_modules
|
|
|
|
path: /drone/src/node_modules
|
|
|
|
commands:
|
|
|
|
- npm i
|
|
|
|
- npm run fetchData
|
2022-04-06 14:29:04 +02:00
|
|
|
- npm run lint
|
2022-03-30 00:08:30 +02:00
|
|
|
- npm run build
|
|
|
|
|
2022-12-08 12:10:07 +01:00
|
|
|
- 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:
|
2023-01-17 11:10:51 +01:00
|
|
|
- mc alias set garage https://s3.garage.resilien.cloud $AWS_ACCESS_KEY_ID $AWS_SECRET_ACCESS_KEY --api S3v4
|
2022-12-08 12:10:07 +01:00
|
|
|
- mc mirror --overwrite /drone/src/dist garage/staging.scores.ceiba-conseil.com
|
2022-03-30 00:08:30 +02:00
|
|
|
|
2023-01-17 11:11:29 +01:00
|
|
|
- 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 ]
|
|
|
|
|
2022-03-30 00:08:30 +02:00
|
|
|
volumes:
|
|
|
|
- name: node_modules
|
|
|
|
host:
|
|
|
|
path: /tmp/drone/cache/weko/scores.ceiba-conseil.com/node_modules
|