1+ version : " 1.0"
2+ kind : step-type
3+ metadata :
4+ name : octopusdeploy-push-package
5+ version : 1.0.0
6+ title : Push a package in Octopus Deploy
7+ isPublic : true
8+ description : Push a package in Octopus Deploy
9+ sources :
10+ - " https://github.com/codefresh-io/steps/tree/master/incubating/octopusdeploy-push-package"
11+ stage : incubating
12+ official : true
13+ categories :
14+ - deployment
15+ icon :
16+ type : svg
17+ url : " https://cdn.jsdelivr.net/gh/codefresh-io/steps/incubating/octopusdeploy-push-package/push_packages.svg"
18+ background : " #F4F6F8"
19+ maintainers :
20+ - name : OctopusDeploy
21+ examples :
22+ - description : Basic usage of the push a package step
23+ workflow :
24+ push-package :
25+ type : octopusdeploy-push-package
26+ arguments :
27+ OCTOPUS_API_KEY : " ${{OCTOPUS_API_KEY}}"
28+ OCTOPUS_URL : " ${{OCTOPUS_URL}}"
29+ OCTOPUS_SPACE : " Spaces 1"
30+ PACKAGES :
31+ - " SomePackage.1.0.0.zip"
32+ - " SomeOtherPackage.1.0.0.zip"
33+ OVERWRITE_MODE : " fail"
34+ spec :
35+ arguments : |-
36+ {
37+ "definitions": {},
38+ "$schema": "http://json-schema.org/draft-07/schema#",
39+ "type": "object",
40+ "name": "octopusdeploy-push-package",
41+ "additionalProperties": false,
42+ "patterns": [],
43+ "required": ["OCTOPUS_API_KEY", "OCTOPUS_URL", "OCTOPUS_SPACE", "PACKAGES"],
44+ "properties": {
45+ "OCTOPUS_API_KEY": {
46+ "type": "string",
47+ "description": "API key for octopus deploy (required)"
48+ },
49+ "OCTOPUS_URL": {
50+ "type": "string",
51+ "description": "URL of the octopus deploy server (required)"
52+ },
53+ "OCTOPUS_SPACE": {
54+ "type": "string",
55+ "description": "API key for octopus deploy (required)"
56+ },
57+ "PACKAGES": {
58+ "type": "array",
59+ "items": {
60+ "type": "string"
61+ },
62+ "description": "Package to upload, may be specified multiple times. Any arguments without flags will be treated as packages (required)"
63+ },
64+ "OVERWRITE_MODE": {
65+ "type": "string",
66+ "description": "Action when a package already exists. Valid values are 'fail', 'overwrite', 'ignore'. Default is 'fail' (optional)"
67+ }
68+ }
69+ }
70+ stepsTemplate : |-
71+ push-package:
72+ name: octopusdeploy-push-package
73+ image: octopuslabs/octopus-cli
74+ tag: latest
75+ commands:
76+ - octopus package push
77+ [[- range $val := .Arguments.PACKAGES ]] --package "[[ $val ]]" [[ end ]]
78+ [[- if .Arguments.OVERWRITE_MODE ]] --overwrite-mode "[[ .Arguments.OVERWRITE_MODE ]]" [[ end ]]
79+ --no-prompt
80+ environment:
81+ - 'OCTOPUS_URL=[[.Arguments.OCTOPUS_URL]]'
82+ - 'OCTOPUS_API_KEY=[[.Arguments.OCTOPUS_API_KEY]]'
83+ - 'OCTOPUS_SPACE=[[.Arguments.OCTOPUS_SPACE]]'
84+ delimiters :
85+ left : " [["
86+ right : " ]]"
0 commit comments