This repository was archived by the owner on Jan 21, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathaction.yml
49 lines (48 loc) · 1.48 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
name: Jina Hub Image Builder
description: Build & test your Pod into Docker image and share with the community
author: Jina AI
outputs:
success_targets:
description: Successfully built targets with their paths
failed_targets:
description: Failed built targets with their paths
inputs:
push:
description: 'if add --push to jina hub build command'
required: false
default: 'False'
jina_hub_token:
description: 'access token for jina hub login'
required: false
default: ${{ github.token }}
dockerhub_username:
description: 'user name of the Docker registry'
required: false
dockerhub_password:
description: 'the plaintext password of the docker hub'
required: false
dockerhub_registry:
description: 'the URL to the Docker registry'
required: false
default: 'https://index.docker.io/v1/'
slack_webhook:
description: 'webhook for Slack notification'
required: false
jina_version:
description: 'the jina version for building the hub image, check out all the available version at https://pypi.org/project/jina, by default the latest version is used.'
required: false
default: 'latest'
runs:
using: 'docker'
image: 'Dockerfile'
args:
- ${{ inputs.push }}
- ${{ inputs.jina_hub_token }}
- ${{ inputs.dockerhub_username }}
- ${{ inputs.dockerhub_password }}
- ${{ inputs.dockerhub_registry }}
- ${{ inputs.slack_webhook }}
- ${{ inputs.jina_version }}
branding:
icon: 'package'
color: 'green'