jam-cloud/bitbucket-pipelines.yml

38 lines
1.4 KiB
YAML
Raw Permalink Normal View History

2021-10-19 16:15:39 +00:00
image: node:14.17.1
2021-10-19 13:06:04 +00:00
pipelines:
branches:
develop:
2021-10-19 13:06:04 +00:00
- step:
2021-10-26 14:48:45 +00:00
name: Build Staging
2021-10-19 13:06:04 +00:00
script:
2021-10-19 13:07:07 +00:00
- cd jam-ui
2021-10-19 13:06:04 +00:00
- npm install
2021-12-03 15:25:42 +00:00
- CI=false REACT_APP_ORIGIN=staging.jamkazam.com REACT_APP_LEGACY_BASE_URL=https://staging.jamkazam.com REACT_APP_API_BASE_URL=https://staging.jamkazam.com/api REACT_APP_BITBUCKET_BUILD_NUMBER=$BITBUCKET_BUILD_NUMBER REACT_APP_BITBUCKET_COMMIT=$BITBUCKET_COMMIT npm run build
2021-10-19 13:06:04 +00:00
artifacts:
2021-10-19 20:16:35 +00:00
- jam-ui/build/**
2021-10-19 13:06:04 +00:00
- step:
2021-10-26 07:58:39 +00:00
name: Deploy to staging
deployment: staging
script:
- pipe: atlassian/aws-s3-deploy:1.1.0
variables:
S3_BUCKET: "jamkazam-ui/stg"
LOCAL_PATH: "jam-ui/build"
2021-10-26 14:48:45 +00:00
- step:
name: Build Production
script:
- cd jam-ui
- npm install
2021-12-03 15:25:42 +00:00
- CI=false REACT_APP_ORIGIN=jamkazam.com REACT_APP_LEGACY_BASE_URL=https://www.jamkazam.com REACT_APP_API_BASE_URL=https://www.jamkazam.com/api REACT_APP_BITBUCKET_BUILD_NUMBER=$BITBUCKET_BUILD_NUMBER REACT_APP_BITBUCKET_COMMIT=$BITBUCKET_COMMIT npm run build
2021-10-26 14:48:45 +00:00
artifacts:
- jam-ui/build/**
2021-10-26 07:58:39 +00:00
- step:
name: Deploy to production
2021-10-19 13:06:04 +00:00
deployment: production
script:
- pipe: atlassian/aws-s3-deploy:1.1.0
variables:
S3_BUCKET: "jamkazam-ui/prd"
2021-10-19 20:21:05 +00:00
LOCAL_PATH: "jam-ui/build"