forked from whoan/docker-build-with-cache-action
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
37 lines (32 loc) · 858 Bytes
/
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
name: Build and push docker images (with cache)
description: Use registry to pull/push cache for an image (stages included)
author: whoan
inputs:
docker_username:
description: Docker's registry user
required: true
docker_password:
description: Docker's registry password
required: true
docker_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: Tag of the image to build
required: true
context:
description: "(Optional) Docker context (default: ./)"
required: false
default: .
runs:
using: 'docker'
image: 'Dockerfile'
env:
PULL_STAGES_LOG: pull-stages-output.log
BUILD_LOG: build-output.log
branding:
icon: 'anchor'
color: 'blue'