-
Notifications
You must be signed in to change notification settings - Fork 38
/
Copy pathaction.yaml
48 lines (48 loc) · 1.4 KB
/
action.yaml
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
name: Push to GCR GitHub Action
author: Rafik Farhad <[email protected]>
description: An action that build docker image and push to Google Cloud Registry
branding:
icon: feather
color: gray-dark
inputs:
gcloud_service_key:
description: Google cloud service key json file as plain text or base64 encrypted. This field is optional if you are using this action with https://github.com/google-github-actions/auth
required: false
registry:
description: The registry where the image should be pushed
required: false
default: 'gcr.io'
project_id:
description: The project id
required: true
default: my-awesome-project
image_name:
description: The image name
required: true
default: backend-server
image_tag:
description: Tag name
required: false
default: latest
dockerfile:
description: Dockerfile that will build the image
required: false
default: ""
context:
description: Docker build context
required: false
default: '.'
target:
description: Multi-staged build target
required: false
default: ""
build_args:
description: "Pass a list of env vars as build-args for docker-build, separated by commas"
required: false
push_only:
description: Skip the build step and just push an image
required: false
default: false
runs:
using: docker
image: docker://ghcr.io/rafikfarhad/push-to-gcr-action:1.0.0