feat: Remove staging compilation
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Simon 2023-05-03 17:12:31 +02:00
parent f8958416fc
commit e4de9aa3e5
1 changed files with 51 additions and 51 deletions

View File

@ -64,64 +64,64 @@ steps:
- mc alias set garage https://s3.garage.resilien.cloud $AWS_ACCESS_KEY_ID $AWS_SECRET_ACCESS_KEY --api S3v4 - 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 - mc mirror --overwrite /drone/src/dist garage/scores.ceiba-conseil.com
- name: notify # - name: notify
image: plugins/matrix@sha256:f1affb31b0c86963c97c6f976fa0dcb3cc84272057fd8558d609d28b3064bd7f # image: plugins/matrix@sha256:f1affb31b0c86963c97c6f976fa0dcb3cc84272057fd8558d609d28b3064bd7f
settings: # settings:
homeserver: https://converser.eu # homeserver: https://converser.eu
roomid: "QwOITmkKxRJJyCSDOZ:converser.eu" # roomid: "QwOITmkKxRJJyCSDOZ:converser.eu"
userid: "resilien:converser.eu" # userid: "resilien:converser.eu"
accesstoken: # accesstoken:
from_secret: MATRIX_ACCESSTOKEN # from_secret: MATRIX_ACCESSTOKEN
when: # when:
status: [ failure ] # status: [ failure ]
volumes: volumes:
- name: node_modules - name: node_modules
host: host:
path: /tmp/drone/cache/weko/scores.ceiba-conseil.com/node_modules path: /tmp/drone/cache/weko/scores.ceiba-conseil.com/node_modules
--- # ---
kind: pipeline # kind: pipeline
type: docker # type: docker
name: staging # name: staging
steps: # steps:
- name: install npm # - name: install npm
image: node:current-alpine # image: node:current-alpine
volumes: # volumes:
- name: node_modules # - name: node_modules
path: /drone/src/node_modules # path: /drone/src/node_modules
commands: # commands:
- npm i # - npm i
- npm run fetchData # - npm run fetchData
- npm run lint # - npm run lint
- npm run build # - npm run build
environment: # environment:
NODE_ENV: 'staging' # NODE_ENV: 'staging'
- name: deploy on s3 # - name: deploy on s3
image: minio/mc # image: minio/mc
environment: # environment:
AWS_ACCESS_KEY_ID: # AWS_ACCESS_KEY_ID:
from_secret: STAGING_AWS_ACCESS_KEY_ID # from_secret: STAGING_AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY: # AWS_SECRET_ACCESS_KEY:
from_secret: STAGING_AWS_SECRET_ACCESS_KEY # from_secret: STAGING_AWS_SECRET_ACCESS_KEY
commands: # commands:
- mc alias set garage https://s3.garage.resilien.cloud $AWS_ACCESS_KEY_ID $AWS_SECRET_ACCESS_KEY --api S3v4 # - 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 # - mc mirror --overwrite /drone/src/dist garage/staging.scores.ceiba-conseil.com
- name: notify # - name: notify
image: plugins/matrix@sha256:f1affb31b0c86963c97c6f976fa0dcb3cc84272057fd8558d609d28b3064bd7f # image: plugins/matrix@sha256:f1affb31b0c86963c97c6f976fa0dcb3cc84272057fd8558d609d28b3064bd7f
settings: # settings:
homeserver: https://converser.eu # homeserver: https://converser.eu
roomid: "QwOITmkKxRJJyCSDOZ:converser.eu" # roomid: "QwOITmkKxRJJyCSDOZ:converser.eu"
userid: "resilien:converser.eu" # userid: "resilien:converser.eu"
accesstoken: # accesstoken:
from_secret: MATRIX_ACCESSTOKEN # from_secret: MATRIX_ACCESSTOKEN
when: # when:
status: [ failure ] # status: [ failure ]
volumes: # volumes:
- name: node_modules # - name: node_modules
host: # host:
path: /tmp/drone/cache/weko/scores.ceiba-conseil.com/node_modules # path: /tmp/drone/cache/weko/scores.ceiba-conseil.com/node_modules