-
Notifications
You must be signed in to change notification settings - Fork 36
/
action.yml
58 lines (58 loc) · 1.62 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
name: 'Build and publish Docker Images to GitHub Container registry'
description: 'Supports custom Dockerfile name, tags, build context, etc. Could generate Docker tags based on git branches.'
inputs:
github-token:
description: 'GitHub token to push Docker image to GitHub Packages'
required: true
image-name:
description: 'Docker Image name'
required: true
image-tag:
description: 'Docker Image tag'
default: "latest"
required: false
extract-git-tag:
description: 'Extract git-tag from repository'
default: "false"
required: false
dockerfile:
description: 'Dockerfile name'
default: "Dockerfile"
required: false
build-context:
description: 'Path to build context'
default: "."
required: false
pull-image:
description: 'Pull the image before buiding it'
default: "false"
required: false
additional-image-tags:
description: 'Multiple tags that will be attached to a built image'
default: ""
required: false
image-platform:
description: 'Target image platform/platforms'
default: ""
required: false
custom-args:
description: 'Any additional docker build arguments as a string'
default: ""
required: false
runs:
using: 'docker'
image: 'Dockerfile'
args:
- ${{ inputs.github-token }}
- ${{ inputs.image-name }}
- ${{ inputs.image-tag }}
- ${{ inputs.extract-git-tag }}
- ${{ inputs.dockerfile }}
- ${{ inputs.build-context}}
- ${{ inputs.pull-image}}
- ${{ inputs.additional-image-tags}}
- ${{ inputs.image-platform}}
- ${{ inputs.custom-args}}
branding:
icon: 'box'
color: 'blue'