This repository was archived by the owner on Dec 26, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathplugin.yml
More file actions
70 lines (70 loc) · 2.34 KB
/
plugin.yml
File metadata and controls
70 lines (70 loc) · 2.34 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
64
65
66
67
68
69
70
---
name: cloudsmith
description: Interact with Cloudsmith package repositories
author: https://github.com/grapl-security
requirements:
- docker
- jq
configuration:
properties:
image:
description: |
The `cloudsmith-cli` image to use; defaults to
`docker.cloudsmith.io/grapl/releases/cloudsmith-cli` (there
isn't an official one yet).
type: string
tag:
description: |
The cloudsmith-cli image to use; defaults to `latest`.
type: string
promote:
description: |
Configuration for package promotions from one repository to
another.
type: object
properties:
action:
description: |
Defines the semantics of the promotion operation with respect to the
source repository; "move" removes the package(s) from the source
repository, while "copy" leaves a copy behind. In both cases, the
package(s) will be present in the destination repository.
type: string
enum: ["move", "copy"]
default: "move"
org:
description: |
The Cloudsmith organization to interact with.
type: string
from:
description: |
The repository to promote packages from. It must be within
the configured organization.
type: string
to:
description: |
The repository to promote packages to. It must also be
within the configured organization.
type: string
packages:
description: |
A mapping of package name to package version. These will
be the packages that are promoted.
type: object
packages_file:
description: |
A file to read packages from. Contains a JSON object of
the same structure as the `packages` key. Preferred over
`packages` if both are present.
type: string
allOf:
- required: [org, from, to]
- oneOf:
# One of `packages` or `packages_file` is required, but
# not both, and not neither.
- required: [packages]
- required: [packages_file]
# For now, "promote" is required. We'll leave "space" in the
# configuration for future operations.
required: [promote]
additionalProperties: false