From 5535a443931fba7fb03f3ba54fbfa28a4d00493e Mon Sep 17 00:00:00 2001 From: Victor Barba Martin Date: Tue, 26 Oct 2021 16:48:45 +0200 Subject: [PATCH] add deploy to staging --- bitbucket-pipelines.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/bitbucket-pipelines.yml b/bitbucket-pipelines.yml index 303a86f50..42629a3ea 100644 --- a/bitbucket-pipelines.yml +++ b/bitbucket-pipelines.yml @@ -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