forked from VaultVulp/gp-docker-action
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathaction.yml
More file actions
48 lines (48 loc) · 1.5 KB
/
action.yml
File metadata and controls
48 lines (48 loc) · 1.5 KB
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 Container Registry"
description: 'GitHub Action to publish Images to ghcr.io. It is possible to specify Dockerfile name and\or build context.'
inputs:
github-username:
description: "Github username to push Docker image from"
required: true
github-token:
description: "GitHub token to push Docker image to GitHub Container Registry"
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-username }}
- ${{ inputs.github-token }}
- ${{ inputs.image-tag }}
- ${{ inputs.extract-git-tag }}
- ${{ inputs.dockerfile }}
- ${{ inputs.build-context}}
- ${{ inputs.pull-image}}
- ${{ inputs.custom-args}}
branding:
icon: "box"
color: "blue"