add deploy to staging

This commit is contained in:
Victor Barba Martin 2021-10-26 16:48:45 +02:00
parent cf21f61985
commit 5535a44393
1 changed files with 13 additions and 1 deletions

View File

@ -4,9 +4,11 @@ pipelines:
branches:
develop:
- step:
name: Build Production
name: Build Staging
script:
- cd jam-ui
- source .env.staging
- env
- npm install
- CI=false npm run build
artifacts:
@ -19,6 +21,16 @@ pipelines:
variables:
S3_BUCKET: "jamkazam-ui/stg"
LOCAL_PATH: "jam-ui/build"
- step:
name: Build Production
script:
- cd jam-ui
- source .env.production
- npm install
- CI=false npm run build
artifacts:
- jam-ui/build/**
- step:
name: Deploy to production
deployment: production