forked from whoan/docker-build-with-cache-action
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
49 lines (44 loc) · 1.24 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
name: Build docker images using cache
description: Use registry to pull/push cache for an image (stages included)
author: whoan
inputs:
username:
description: Docker's registry user
required: true
password:
description: Docker's registry password
required: true
registry:
description: "(Optional) Docker registry (default: Docker Hub's registry)"
required: false
image_name:
description: Name of the image to build
required: true
image_tag:
description: "(Optional) Tag 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) Set to false to avoid pushing to registry (default: true)"
required: false
default: true
build_extra_args:
description: "(Optional) Extra arguments to pass to docker build"
required: false
runs:
using: 'docker'
image: 'Dockerfile'
env:
PULL_STAGES_LOG: pull-stages-output.log
BUILD_LOG: build-output.log
branding:
icon: 'anchor'
color: 'blue'