Skip to content

Commit

Permalink
gcloud deploy app action
Browse files Browse the repository at this point in the history
  • Loading branch information
SKairinos committed May 24, 2024
1 parent 0e75520 commit 947021b
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/actions/gcloud/deploy-app/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: "Code for Life - GCloud - Deploy App"
description: "Deploy an app to Google Cloud."
inputs:
gcp-credentials:
description: "The JSON credentials uses to access GCP."
required: true
deploy-args:
description: "Arguments to pass to `gcloud app deploy`."
required: false
runs:
using: composite
steps:
- name: 🗝 Authenticate with GCloud
uses: google-github-actions/auth@v2
with:
credentials_json: ${{ inputs.gcp-credentials }}

- name: 🤖 Set up GCloud SDK
uses: google-github-actions/setup-gcloud@v2

- name: 🚀 Deploy App on GCloud
shell: bash
run: gcloud app deploy ${{ inputs.deploy-args }}

0 comments on commit 947021b

Please sign in to comment.