adding prod env
This commit is contained in:
parent
bbba0c8e56
commit
dd9e3aab42
31
.github/workflows/ci.yml
vendored
31
.github/workflows/ci.yml
vendored
@ -56,3 +56,34 @@ jobs:
|
||||
--service-account runuserplaylist-func@${{ vars.GCP_PROJECT }}.iam.gserviceaccount.com \
|
||||
--set-build-env-vars=GOOGLE_BUILDABLE=Mixonomer.Func
|
||||
shell: bash
|
||||
|
||||
deployprod:
|
||||
runs-on: ubuntu-latest
|
||||
name: Deploy Production
|
||||
environment:
|
||||
name: prod
|
||||
url: https://mixonomer.sarsoo.xyz
|
||||
needs: deploytest # for ignoring bad builds
|
||||
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
|
||||
steps:
|
||||
- uses: actions/checkout@v3 # get source
|
||||
|
||||
- name: Set up Cloud SDK
|
||||
uses: google-github-actions/auth@v0.7.3
|
||||
with:
|
||||
credentials_json: '${{ secrets.GCP_SA_KEY }}'
|
||||
export_environment_variables: true
|
||||
create_credentials_file: true
|
||||
|
||||
- name: Deploy RunUserPlaylist
|
||||
run: |
|
||||
gcloud functions deploy RunUserPlaylist \
|
||||
--region europe-west2 \
|
||||
--gen2 \
|
||||
--runtime=dotnet6 \
|
||||
--entry-point Mixonomer.Func.RunUserPlaylist \
|
||||
--trigger-topic run_user_playlist \
|
||||
--set-env-vars GOOGLE_CLOUD_PROJECT=${{ vars.GCP_PROJECT }} \
|
||||
--service-account runuserplaylist-func@${{ vars.GCP_PROJECT }}.iam.gserviceaccount.com \
|
||||
--set-build-env-vars=GOOGLE_BUILDABLE=Mixonomer.Func
|
||||
shell: bash
|
Loading…
Reference in New Issue
Block a user