Skip to content

Commit

Permalink
chore(palletjack): upgrade to gen 2 function
Browse files Browse the repository at this point in the history
  • Loading branch information
stdavis committed Oct 3, 2024
1 parent 852248f commit 58b4ce3
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/actions/palletjack/deploy/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,21 +28,21 @@ runs:

- name: 🚀 Deploy to Cloud Function
id: deploy
uses: google-github-actions/deploy-cloud-functions@v2
uses: google-github-actions/deploy-cloud-functions@v3
with:
name: roadkill-skid
runtime: python39
entry_point: main
source_dir: src/palletjack/src/roadkill
service_account_email: cloud-function-sa@${{ inputs.project_id }}.iam.gserviceaccount.com
service_account: cloud-function-sa@${{ inputs.project_id }}.iam.gserviceaccount.com
event_trigger_type: providers/cloud.pubsub/eventTypes/topic.publish
event_trigger_resource: projects/${{ inputs.project_id }}/topics/palletjack-topic
event_trigger_pubsub_topic: projects/${{ inputs.project_id }}/topics/palletjack-topic
deploy_timeout: 600
memory_mb: 4096
timeout: 540 # this is the max allowed
secret_volumes: |
memory: 4G
service_timeout: 10m
secrets: |
/secrets/app/secrets.json=${{inputs.project_id}}/skid-secrets
env_vars: PROJECT_ID=${{ inputs.project_id }}
environment_variables: PROJECT_ID=${{ inputs.project_id }}

- name: 📥 Create PubSub topic
shell: bash
Expand Down

0 comments on commit 58b4ce3

Please sign in to comment.