Skip to content

Commit

Permalink
continuous deploy on Circle
Browse files Browse the repository at this point in the history
for #540
  • Loading branch information
snarfed committed Jun 14, 2023
1 parent bfb462e commit cbab604
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ jobs:
pip install -U -r requirements.txt
pip install coverage coveralls
ln -sf $VIRTUAL_ENV/lib/python3.9/site-packages/oauth_dropins/fonts oauth_dropins_fonts
ln -sf $VIRTUAL_ENV/lib/python3.9/site-packages/oauth_dropins/static oauth_dropins_static
- run:
name: Build and test
command: |
Expand All @@ -44,6 +47,17 @@ jobs:
python -m coverage html -d /tmp/coverage_html
if [ "$COVERALLS_REPO_TOKEN" != "" ]; then coveralls || true; fi
# a step only runs if all previous steps succeed, including tests above
# https://circleci.com/docs/configuration-reference/#the-when-attribute
- run:
name: Deploy
command: |
echo $$CIRCLE_BRANCH
if [ $CIRCLE_BRANCH = "cd" ]; then
echo $GCLOUD_SERVICE_KEY | gcloud auth activate-service-account --key-file=-
gcloud -q beta app deploy --no-cache --project bridgy-federated *.yaml
fi
- save_cache:
key: venv-4-{{ .Branch }}-{{ checksum "requirements.txt" }}
paths:
Expand Down

0 comments on commit cbab604

Please sign in to comment.