132 lines
3.4 KiB
YAML
132 lines
3.4 KiB
YAML
---
|
|
# drone encrypt weko/scores.ceiba-conseil.com $DIRECTUS_URL
|
|
kind: secret
|
|
name: DIRECTUS_URL
|
|
data: Z1mUl3LdiVP6vClaVeA56nTafKHIevYaRKqqYDKycN5im+M93XvrZbK995EDreb4cttMD1jMmJaq3NQ=
|
|
|
|
---
|
|
# drone encrypt weko/scores.ceiba-conseil.com $DIRECTUS_TOKEN
|
|
kind: secret
|
|
name: DIRECTUS_TOKEN
|
|
data: C4N8jh2kDORa5vo2mqOcqbBLLBXdcnHNDq9sK6+R9gzemeyzLp3K7ENw5ZibVYAJ2VEYylQr9zvHFeFE
|
|
|
|
---
|
|
# drone encrypt weko/scores.ceiba-conseil.com $AWS_ACCESS_KEY_ID
|
|
kind: secret
|
|
name: STAGING_AWS_ACCESS_KEY_ID
|
|
data: vlodnMDH4TJTqTBLYgZYq/O5U4IoFl3LGv12aNGRZr39v+tDDaBdB08duY7rXQ3yHnbrXihO
|
|
|
|
---
|
|
# drone encrypt weko/scores.ceiba-conseil.com $AWS_SECRET_ACCESS_KEY
|
|
kind: secret
|
|
name: STAGING_AWS_SECRET_ACCESS_KEY
|
|
data: REEeUiOcy6dtO3fHB5hqZ17aR+YJm3vGkS0tVTdL3Oy32Og+8hFunRZ3Ym7qkrkw8C0JKAhk22traNWEGzPZcb9rzMb25tRRXZC0GdVd+9bvKOMcCYTvBk2hjWI=
|
|
|
|
---
|
|
# drone encrypt weko/scores.ceiba-conseil.com $AWS_ACCESS_KEY_ID
|
|
kind: secret
|
|
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=
|
|
|
|
---
|
|
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
|
|
- npm run lint
|
|
- npm run build
|
|
|
|
- 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
|
|
|
|
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
|
|
- npm run lint
|
|
- npm run build
|
|
|
|
- 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/scores.ceiba-conseil.com/node_modules
|