continuous deploy on Circle

for #540
cd
Ryan Barrett 2023-06-14 06:47:30 -07:00
rodzic bfb462e414
commit 690d9dc7a1
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 6BE31FDF4776E9D4
1 zmienionych plików z 14 dodań i 0 usunięć

Wyświetl plik

@ -35,6 +35,9 @@ jobs:
pip install -U -r requirements.txt
pip install coverage coveralls
ln -sf `pyenv prefix`/lib/python3.9/site-packages/oauth_dropins/fonts oauth_dropins_fonts
ln -sf `pyenv prefix`/lib/python3.9/site-packages/oauth_dropins/static oauth_dropins_static
- run:
name: Build and test
command: |
@ -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: