Skip to content

Commit

Permalink
staging deployment workflow (#381)
Browse files Browse the repository at this point in the history
  • Loading branch information
nik-dange authored Dec 31, 2023
1 parent 03a4c3b commit 57f6c4a
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,17 @@ jobs:
GIT_HASH=$(echo $CIRCLE_SHA1 | cut -c -7)
docker run caprover/cli-caprover:v2.1.1 caprover deploy --caproverUrl https://captain.caprover.acmucsd.com --caproverPassword $CAPROVER_PASS --caproverApp membership-portal-api-testing --imageName acmucsd/membership-portal-api:$GIT_HASH
docker run caprover/cli-caprover:v2.1.1 caprover deploy --caproverUrl https://captain.caprover.acmucsd.com --caproverPassword $CAPROVER_PASS --caproverApp membership-portal-api --imageName acmucsd/membership-portal-api:$GIT_HASH
deploy_staging:
environment:
GIT_HASH: $(echo $CIRCLE_SHA1 | cut -c -7)
machine:
enabled: true
steps:
- checkout
- run:
command: |
GIT_HASH=$(echo $CIRCLE_SHA1 | cut -c -7)
docker run caprover/cli-caprover:v2.1.1 caprover deploy --caproverUrl https://captain.caprover.acmucsd.com --caproverPassword $CAPROVER_PASS --caproverApp membership-portal-api-testing --imageName acmucsd/membership-portal-api:$GIT_HASH
workflows:
test_and_deploy:
Expand All @@ -133,7 +144,9 @@ workflows:
- test
filters:
branches:
only: master
only:
- master
- staging
- deploy:
requires:
- build
Expand All @@ -143,3 +156,12 @@ workflows:
filters:
branches:
only: master
- deploy_staging:
requires:
- build
- lint
- test
- image
filters:
branches:
only: staging

0 comments on commit 57f6c4a

Please sign in to comment.