forked from bastiankistner/action-cloud-run
-
Notifications
You must be signed in to change notification settings - Fork 4
/
action.yml
90 lines (88 loc) · 2.47 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
name: "Cloud Run branch deployment"
description: "Authenticate with gcloud, build and push image to GCR and deploy as a new revision or branch preview to Cloud Run"
author: "Florian Schlittenbauer <florian.schlittenbauer@gmail.com>"
branding:
icon: "upload-cloud"
color: "blue"
inputs:
project:
description: "GCP project"
required: true
service_name:
description: "Cloud run service name"
required: true
key:
description: "GCP service key with storage and run permissions"
required: true
action:
description: "Action to be executed ('deploy' or 'delete')"
required: false
default: "deploy"
registry:
description: "GCP Registry (e.g. 'eu.gcr.io')"
required: false
default: eu.gcr.io
region:
description: "GCP Region"
required: false
default: europe-west1
platform:
description: "GCP Cloud Run Platform"
required: false
default: managed
working_directory:
description: "Directory where the Dockerfile is to be found"
required: false
default: "."
deploy_flags:
description: "Additional flags for deploy command"
required: false
default: "--region=europe-west1 --platform=managed --allow-unauthenticated --port=80"
hook_begin:
description: "hook_begin"
required: false
hook_vars_before:
description: "hook_vars_before"
required: false
hook_vars_after:
description: "hook_vars_after"
required: false
hook_setup_before:
description: "hook_setup_before"
required: false
hook_setup_after:
description: "hook_setup_after"
required: false
hook_build_before:
description: "hook_build_before"
required: false
hook_build_after:
description: "hook_build_after"
required: false
hook_push_before:
description: "hook_push_before"
required: false
hook_push_after:
description: "hook_push_after"
required: false
hook_deploy_before:
description: "hook_deploy_before"
required: false
hook_deploy_after:
description: "hook_deploy_after"
required: false
hook_end:
description: "hook_end"
required: false
outputs:
cloud_run_service_url:
description: "URL of the deployed service"
cloud_run_image:
description: "Name of the built image"
cloud_run_image_sha:
description: "Name of the built image with commit sha as tag"
cloud_run_image_branch:
description: "Name of the built image with branch name as tag"
runs:
using: "docker"
image: "docker://ghcr.io/schliflo/action-cloud-run:2.5.0"