Skip to content

Commit

Permalink
Merge pull request #214 from ustaxcourt/dont-deploy-generic-users-to-…
Browse files Browse the repository at this point in the history
…master

Don’t deploy generic users in master (as well as migration).
  • Loading branch information
JessicaMarine authored May 28, 2020
2 parents f9f6cc2 + 0b5904b commit 791b59f
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -503,23 +503,23 @@ jobs:
- run:
name: 'Deploy - Web API - Cognito Create Users'
command: |
if [ "${CIRCLE_BRANCH}" != "migration" ]; then
if [ "${CIRCLE_BRANCH}" != "migration" ] && [ "${CIRCLE_BRANCH}" != "master"]; then
docker run -e "AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}" -e "AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}" -e "USTC_ADMIN_PASS=${USTC_ADMIN_PASS}" --rm efcms /bin/sh -c "cd web-api && ./setup-cognito-users.sh ${ENV}"
else
echo "skipping…"
fi
- run:
name: 'Deploy - Web API - Cognito Create Court Users'
command: |
if [ "${CIRCLE_BRANCH}" != "migration" ]; then
if [ "${CIRCLE_BRANCH}" != "migration" ] && [ "${CIRCLE_BRANCH}" != "master"]; then
docker run -e "AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}" -e "AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}" -e "USTC_ADMIN_PASS=${USTC_ADMIN_PASS}" --rm efcms /bin/sh -c "cd web-api && ./setup-court-users.sh ${ENV}"
else
echo "skipping…"
fi
- run:
name: 'Deploy - Web API - Cognito Create IRS User'
command: |
if [ "${CIRCLE_BRANCH}" != "migration" ]; then
if [ "${CIRCLE_BRANCH}" != "migration" ] && [ "${CIRCLE_BRANCH}" != "master"]; then
docker run -e "AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}" -e "AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}" -e "USTC_ADMIN_PASS=${USTC_ADMIN_PASS}" --rm efcms /bin/sh -c "cd web-api && ./setup-irs-user.sh ${ENV}"
else
echo "skipping…"
Expand All @@ -530,31 +530,31 @@ jobs:
- run:
name: 'Deploy - Web API - Smoke Tests - us-east-1'
command: |
if [ "${CIRCLE_BRANCH}" != "migration" ]; then
if [ "${CIRCLE_BRANCH}" != "migration" ] && [ "${CIRCLE_BRANCH}" != "master"]; then
docker run -e "AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}" -e "AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}" --rm efcms /bin/sh -c "cd web-api && node smoke-tests.js ${ENV} us-east-1"
else
echo "skipping…"
fi
- run:
name: 'Deploy - Web API - Smoke Tests - us-west-1'
command: |
if [ "${CIRCLE_BRANCH}" != "migration" ]; then
if [ "${CIRCLE_BRANCH}" != "migration" ] && [ "${CIRCLE_BRANCH}" != "master"]; then
docker run -e "AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}" -e "AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}" --rm efcms /bin/sh -c "cd web-api && node smoke-tests.js ${ENV} us-west-1"
else
echo "skipping…"
fi
- run:
name: 'Deploy - Cypress Smoke Tests'
command: |
if [ "${CIRCLE_BRANCH}" != "migration" ]; then
if [ "${CIRCLE_BRANCH}" != "migration" ] && [ "${CIRCLE_BRANCH}" != "master"]; then
docker run -e "AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}" -e "AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}" --rm efcms /bin/sh -c "CYPRESS_BASE_URL='https://ui-$ENV.$EFCMS_DOMAIN' ENV=${ENV} npm run cypress:smoketests"
else
echo "skipping…"
fi
- run:
name: 'Deploy - Pa11y Smoke Tests'
command: |
if [ "${CIRCLE_BRANCH}" != "migration" ]; then
if [ "${CIRCLE_BRANCH}" != "migration" ] && [ "${CIRCLE_BRANCH}" != "master"]; then
docker run -e "AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}" -e "AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}" -e "EFCMS_DOMAIN=${EFCMS_DOMAIN}" --rm efcms /bin/sh -c "ENV=${ENV} npm run test:pa11y:smoketests"
else
echo "skipping…"
Expand Down

0 comments on commit 791b59f

Please sign in to comment.