-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |