Skip to content

Commit

Permalink
revert back to previous setup as --flags-file is not supported
Browse files Browse the repository at this point in the history
when running function deploy
  • Loading branch information
cru-Luis-Rodriguez committed Oct 25, 2024
1 parent c540114 commit 27406e4
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/build-deploy-cloudrun-function.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,15 @@ jobs:
GCP_REGION: ${{ secrets.GCP_REGION }}
run: |
gcloud config set project ${{ secrets.GCP_PROJECT_ID }}
gcloud functions deploy ${{ inputs.function_name }}-test \
--flags-file=function_config.yml \
gcloud functions deploy ${{ inputs.function_name }}-${{ needs.build.outputs.build-number }} \
--no-allow-unauthenticated \
--region $GCP_REGION \
--gen2 \
--source=./${{ inputs.function_name }} \
--runtime=python312 \
--entry-point=hello_http \
--trigger-http \
--set-secrets=API_KEY=${{ inputs.function_name }}_API_KEY:latest,API_SECRET=${{ inputs.function_name }}_API_SECRET:latest \
--build-service-account=projects/${{ secrets.GCP_PROJECT_ID }}/serviceAccounts/${{ secrets.GCP_SERVICE_ACCOUNT_EMAIL }} \
--run-service-account=${{ secrets.RUN_SERVICE_ACCOUNT }}
Expand Down

0 comments on commit 27406e4

Please sign in to comment.