-
Notifications
You must be signed in to change notification settings - Fork 3
/
action.yaml
62 lines (62 loc) · 2.38 KB
/
action.yaml
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
59
60
61
62
name: 'Build and Push to Humanitec'
description: 'Builds a container image from a Dockerfile and then pushes it to the Humanitec registry and notifies the platform.'
inputs:
humanitec-token:
description: |
API Token provided when you add your ci pipline in the Humanitec platform.
required: true
organization:
description: 'The name of the organization that the image will be built for.'
required: true
image-name:
description: 'The name you want to refer to the image to in the Humanitec Platform.'
required: false
default: ''
existing-image:
description: 'Use an existing image instead of building an image. The image name needs to include a tag or digest.'
required: false
default: ''
tag:
description: 'Use tag when you want to bring your own tag.'
required: false
ref:
description: 'Use ref when you want to bring your own ref instead of the GitHub action supplied ref.'
required: false
auto-tag:
description: 'Use auto-tag when you want to push tags/release by their git name.'
required: false
dockerfile:
description: 'The same as "context".'
required: false
deprecationMessage: 'Use "context" instead.'
context:
description: 'Build context path. Defaults to the root of repository.'
required: false
default: '.'
file:
description: 'Name of the Dockerfile, defaults to `$context/Dockerfile`.'
required: false
additional-docker-arguments:
description: 'Additional arguments for docker (e.g.,build arguments). Defaults to empty.'
required: false
humanitec-registry:
description: 'Allows the default humanitec registry to be overidden for testing.'
required: false
default: 'registry.humanitec.io'
humanitec-api:
description: 'Allows the default humanitec api to be overidden for testing.'
required: false
default: 'api.humanitec.io'
external-registry-url:
description: 'Push the image to an external container registry. This registry does not need to be [registered with Humanitec](https://docs.humanitec.com/guides/connect-ci-setup/container-registries) and authentication needs to be done by the explicitly (e.g. using workload identity).'
required: false
default: ''
outputs:
image:
description: 'The full name of the image that was built and pushed.'
runs:
using: 'node20'
main: 'dist/index.js'
branding:
icon: 'check-square'
color: 'blue'