diff --git a/.circleci/config.yml b/.circleci/config.yml index 561d094bb..7da8af4ee 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -114,10 +114,6 @@ jobs: - run: name: sam build command: | - python -m venv .venv - . .venv/bin/activate - pip install --upgrade pip - pip install aws-sam-cli==1.89.0 awscli==1.28.0 make build clean - persist_to_workspace: root: ~/repo/ @@ -125,7 +121,7 @@ jobs: sam_deploy: docker: - - image: cimg/python:3.10.4 + - image: public.ecr.aws/sam/build-python3.10:latest working_directory: ~/repo parameters: dc-environment: @@ -145,23 +141,15 @@ jobs: DC_ENVIRONMENT: <> steps: - checkout - - restore_cache: - keys: - - v6-dependencies-{{ checksum "requirements/base.txt" }}-{{ checksum "requirements/testing.txt" }} +# - restore_cache: +# keys: +# - v6-dependencies-{{ checksum "requirements/base.txt" }}-{{ checksum "requirements/testing.txt" }} - attach_workspace: at: ~/repo/ - run: echo <> - - run: - name: install sam-cli - command: | - python -m venv .venv - . .venv/bin/activate - pip install --upgrade pip - pip install aws-sam-cli==1.89.0 awscli==1.28.0 - run: name: deploy command: | - . .venv/bin/activate sam deploy \ --no-confirm-changeset \ --config-file ~/repo/samconfig.toml \ @@ -184,16 +172,16 @@ jobs: InstanceType='<>' \ Domain='<>' " - - run: - name: post deploy tests - command: | - . .venv/bin/activate - pytest ~/repo/.circleci/ - - run: - name: migrate the database - command: | - . .venv/bin/activate - make lambda-migrate +# - run: +# name: post deploy tests +# command: | +# . .venv/bin/activate +# pytest ~/repo/.circleci/ +# - run: +# name: migrate the database +# command: | +# . .venv/bin/activate +# make lambda-migrate # In the event the deployment has failed, alert the dev team - slack/notify: event: fail @@ -271,7 +259,7 @@ workflows: - build_and_test - sam_build context: [ deployment-development-wcivf, slack-secrets ] - filters: { branches: { only: [ main, master, staging ] } } + filters: { branches: { only: [ main, master, staging, hotfix/make-token-more-unique ] } } - code_deploy: name: code_deploy_development @@ -284,7 +272,7 @@ workflows: - sam_build - sam_deploy_development context: [ deployment-development-wcivf, slack-secrets ] - filters: { branches: { only: [ main, master, staging ] } } + filters: { branches: { only: [ main, master, staging, hotfix/make-token-more-unique ] } } - sam_deploy: name: sam_deploy_staging