Skip to content

Commit

Permalink
merge from development
Browse files Browse the repository at this point in the history
  • Loading branch information
SKairinos committed Sep 28, 2023
2 parents ced3759 + 4ae6026 commit ca32b48
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 15 deletions.
24 changes: 13 additions & 11 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
workflow_dispatch:

env:
SERVICE_NAME: sso
SERVICE: sso
PYTHON_VERSION: 3.8

jobs:
Expand Down Expand Up @@ -79,22 +79,24 @@ jobs:
working-directory: ./backend
run: pipenv requirements > requirements.txt

- name: ⚙️ Set Service Name
run: |
echo "SERVICE_NAME=$(
if [ ${{ github.ref_name }} == 'production' ]
then echo ${{ env.SERVICE }}
else echo ${{ github.ref_name }}-${{ env.SERVICE }}
fi
)" >> $GITHUB_ENV
# https://mikefarah.gitbook.io/yq/
- name: 🖊️ Configure App Deployment
uses: mikefarah/yq@master
with:
cmd: |
SERVICE_NAME=$(
if [ ${{ github.ref_name }} == "production" ]
then echo ${{ env.SERVICE_NAME }}
else echo ${{ github.ref_name }}-${{ env.SERVICE_NAME }}
fi
)
yq -i '
.service = "${{ github.ref_name }}-${{ env.SERVICE_NAME }}" |
.env_variables.SECRET_KEY = "${{ vars.SECRET_KEY }}" |
.env_variables.SERVICE_NAME = "$SERVICE_NAME"
.service = "${{ github.ref_name }}-${{ env.SERVICE }}" |
.env_variables.SECRET_KEY = "${{ secrets.SECRET_KEY }}" |
.env_variables.SERVICE_NAME = "${{ env.SERVICE_NAME }}"
' backend/app.yaml
- name: 🚀 Deploy App on GCloud
Expand Down
6 changes: 3 additions & 3 deletions backend/Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion backend/app.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
runtime: python38
instance_class: F2
instance_class: F4
service: REPLACE_ME

inbound_services:
Expand Down

0 comments on commit ca32b48

Please sign in to comment.