forked from VaultVulp/gp-docker-action
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
48 lines (48 loc) · 1.33 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
name: 'Build and publish Docker Image to GitHub Packages Registry'
description: 'GitHub Action to publish Docker Images to GitHub Registry. It is possible to specify Dockerfile name and\or build context.'
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
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.custom-args}}
branding:
icon: 'box'
color: 'blue'