forked from whoan/docker-build-with-cache-action
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
57 lines (52 loc) · 1.8 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
name: Build docker images using cache
description: Use registry to pull/push cache for an image (stages included)
author: whoan
inputs:
image_name:
description: Name of the image to build
required: true
username:
description: (Optional) Docker's registry user (needed to push image to repository, or to pull from private repository)
required: false
password:
description: (Optional) Docker's registry password (needed to push image to repository, or to pull from private repository)
required: false
registry:
description: "(Optional) Docker registry (default: Docker Hub's registry)"
required: false
image_tag:
description: "(Optional) Tag/s of the image to build (default: latest)"
required: false
default: latest
context:
description: "(Optional) Docker context (default: ./)"
required: false
default: .
dockerfile:
description: "(Optional) Name of the Dockerfile (default: Dockerfile)"
required: false
default: Dockerfile
push_image_and_stages:
description: "(Optional) Test any command before pushing. Use false to avoid pushing to registry (default: true)"
required: false
default: true
push_git_tag:
description: "(Optional) In addition to `image_tag` value, you can also push current git tag (default: false)"
required: false
default: false
pull_image_and_stages:
description: "(Optional) Set to false to avoid pulling from registry (default: true)"
required: false
default: true
build_extra_args:
description: "(Optional) Extra arguments to pass to docker build"
required: false
outputs:
FULL_IMAGE_NAME:
description: Full name of the Docker Image with the Registry (if provided) and Namespace included
runs:
using: 'docker'
image: 'Dockerfile'
branding:
icon: 'anchor'
color: 'blue'