-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpublish_latest_loader_image.yml
More file actions
63 lines (61 loc) · 2.24 KB
/
Copy pathpublish_latest_loader_image.yml
File metadata and controls
63 lines (61 loc) · 2.24 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: "Publish loader image(latest)"
on:
schedule:
- cron: '0 23 * * *'
workflow_dispatch:
inputs:
source_repository:
required: false
default: 'apache/hugegraph-toolchain'
description: 'Source repo owner/name'
source_ref:
required: false
default: 'master'
description: 'Source branch/tag/commit'
image_tag:
required: false
default: ''
description: 'Docker image tag'
publish:
type: boolean
required: false
default: false
description: 'Push images to Dockerhub'
mvn_args:
required: false
default: ''
description: 'Optional Maven build args'
jobs:
publish:
uses: ./.github/workflows/_publish_image_reusable.yml
with:
mode: latest
component: loader
source_repository: ${{ inputs.source_repository || 'apache/hugegraph-toolchain' }}
allowed_source_repositories: apache/hugegraph-toolchain,hugegraph/hugegraph-toolchain
source_ref: ${{ inputs.source_ref || 'master' }}
default_source: apache/hugegraph-toolchain@master
image_tag: ${{ inputs.image_tag || '' }}
publish: ${{ github.event_name != 'workflow_dispatch' || inputs.publish == true }}
build_matrix_json: |
[
{
"module": "loader",
"context": ".",
"dockerfile": "./hugegraph-loader/Dockerfile",
"image_repo_latest": "hugegraph/loader",
"image_repo_release": "hugegraph/loader",
"registry_cache_image": "hugegraph/loader:buildcache-latest",
"platforms_latest": "linux/amd64,linux/arm64",
"platforms_release": "linux/amd64,linux/arm64",
"smoke_test": false
}
]
use_mvn_args: true
mvn_args: ${{ github.event.inputs.mvn_args || '' }}
enable_hash_gate: ${{ github.event_name != 'workflow_dispatch' || ((inputs.source_repository || 'apache/hugegraph-toolchain') == 'apache/hugegraph-toolchain' && (inputs.source_ref || 'master') == 'master' && (inputs.image_tag || '') == '') }}
last_hash_value: ${{ vars.LAST_LOADER_HASH }}
last_hash_name: LAST_LOADER_HASH
hash_repo_owner: hugegraph
hash_repo_name: actions
secrets: inherit