Skip to content

Commit

Permalink
correct deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
cru-Luis-Rodriguez committed Oct 29, 2024
1 parent 069078d commit 5a2c5cc
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/build-deploy-cloudrun-function.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,13 @@ jobs:
GCP_SERVICE_ACCOUNT_EMAIL: ${{ vars.GCP_SERVICE_ACCOUNT_EMAIL }}
GCP_REGION: ${{ vars.GCP_REGION }}
run: |
gcloud config set project ${{ vars.GCP_PROJECT_ID }}
gcloud functions deploy ${{ vars.function_name }} \
--region ${{ vars.GCP_REGION }} \
--source=./${{ vars.function_name }} \
--entry-point=${{ vars.entry_point }} \
--runtime=${{ vars.runtime }} \
--build-service-account=projects/${{ vars.GCP_PROJECT_ID }}/serviceAccounts/${{ vars.GCP_SERVICE_ACCOUNT_EMAIL }}
gcloud config set project ${{ GCP_PROJECT_ID }}
gcloud functions deploy ${{ inputs.function_name }} \
--region ${{ GCP_REGION }} \
--source=./${{ inputs.function_name }} \
--entry-point=${{ inputs.entry_point }} \
--runtime=${{ inputs.runtime }} \
--build-service-account=projects/${{ GCP_PROJECT_ID }}/serviceAccounts/${{ GCP_SERVICE_ACCOUNT_EMAIL }}
- uses: actions/github-script@v6
if: github.event.pull_request.merged == true
Expand Down

0 comments on commit 5a2c5cc

Please sign in to comment.