-
Notifications
You must be signed in to change notification settings - Fork 0
/
configu-step.yml
69 lines (69 loc) · 1.85 KB
/
configu-step.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
version: "1.0"
kind: step-type
metadata:
name: configu
version: 0.0.1
title: Setup Configu CLI
isPublic: true
description: Install and configure Configu CLI.
sources:
- "https://github.com/configu/setup-cli-codefresh"
stage: incubating
maintainers:
- name: Configu Dev
email: dev@configu.com
categories:
- featured
official: true
tags: [configuration]
icon:
type: svg
url: "https://raw.githubusercontent.com/configu/configu/main/assets/icon.svg"
background: "#ffffff"
examples:
- description: Export configurations
workflow:
configu_export:
title: Export configurations
type: configu
arguments:
COMMANDS:
- configu --version
- configu eval --store 'configu' --set 'test/codefresh' --schema '/codefresh/volume/${{CF_REPO_NAME}}/.cfgu.json' | configu export
spec:
arguments: |-
{
"definitions": {},
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"additionalProperties": false,
"patterns": [],
"required": [
"COMMANDS",
],
"properties": {
"VERSION": {
"type": "string",
"description": "The version of Configu CLI to install. A value of `latest` will install the latest version of Configu CLI. Defaults to `latest`.",
"default": "latest"
},
"COMMANDS": {
"type": "array",
"items": {
"type": "string"
},
"description": "Commands to execute. Example: https://vault.testdomain.io:8200. (required)"
}
}
}
stepsTemplate: |-
main:
name: configu
image: configu/cli:[[.Arguments.VERSION]]
commands:
[[ range $arg := .Arguments.COMMANDS ]]
- '[[ $arg ]]'
[[- end ]]
delimiters:
left: "[["
right: "]]"