Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
191 changes: 92 additions & 99 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,105 +5,98 @@ metadata:
name: setup-stackspot-workflows
display-name: StackSpot Setup Workflows.
description: Action to configure Stackspot workflows in SCM provider
version: 0.0.1
spec:
version: 1.0.0
spec:
type: python
docs:
pt_br: docs_action/pt-br/doc.md
en_us: docs_action/en-us/doc.md
inputs:
- label: SCM provider
name: provider
type: text
items:
- Azure
- Bitbucket
- Github
- Gitlab

- label: Personal Access Token
name: pat
type: password
condition:
variable: provider
operator: containsAny
value:
- Azure
- Github
- Gitlab

- label: Project Name
name: project_name
type: text
condition:
variable: provider
operator: containsAny
value:
- Azure
- Gitlab

- label: Project Key
name: project_key
type: text
condition:
variable: provider
operator: containsAny
value:
- Bitbucket

- label: Organization Name
name: org_name
type: text
condition:
variable: provider
operator: containsAny
value:
- Azure
- Github

- label: Repository Name
name: repo_name
type: text
condition:
variable: provider
operator: containsAny
value:
- Github
- Bitbucket
- Azure

- label: Group Name
name: group_name
type: text
condition:
variable: provider
operator: containsAny
value:
- Gitlab

- label: Workspace Name
name: workspace_name
type: text
condition:
variable: provider
operator: containsAny
value:
- Bitbucket

- label: Client Key
name: client_key
type: text
condition:
variable: provider
operator: containsAny
value:
- Bitbucket

- label: Client Secret
name: client_secret
type: password
condition:
variable: provider
operator: containsAny
value:
- Bitbucket

- label: SCM provider
name: provider
type: text
items:
- Azure
- Bitbucket
- Github
- Gitlab
- label: Personal Access Token
name: pat
type: password
condition:
variable: provider
operator: containsAny
value:
- Azure
- Github
- Gitlab
- label: Project Name
name: project_name
type: text
condition:
variable: provider
operator: containsAny
value:
- Azure
- Gitlab
- label: Project Key
name: project_key
type: text
condition:
variable: provider
operator: containsAny
value:
- Bitbucket
- label: Organization Name
name: org_name
type: text
condition:
variable: provider
operator: containsAny
value:
- Azure
- Github
- label: Repository Name
name: repo_name
type: text
condition:
variable: provider
operator: containsAny
value:
- Github
- Bitbucket
- Azure
- label: Group Name
name: group_name
type: text
condition:
variable: provider
operator: containsAny
value:
- Gitlab
- label: Workspace Name
name: workspace_name
type: text
condition:
variable: provider
operator: containsAny
value:
- Bitbucket
- label: Client Key
name: client_key
type: text
condition:
variable: provider
operator: containsAny
value:
- Bitbucket
- label: Client Secret
name: client_secret
type: password
condition:
variable: provider
operator: containsAny
value:
- Bitbucket
python:
script: stackspot-actions/setup-stackspot-workflows/main.py
script: stackspot-actions/setup-stackspot-workflows/main.py
13 changes: 13 additions & 0 deletions docs_action/en-us/doc.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
## About
Action to create a workflow in a repository so that it can be used as a repository for executing StackSpot workflows,
allowing the creation of Apps, Infrastructure and execution of actions through the Portal.
---
## Implementation
This action will create a workflow according to the selected provider, after that just commit the files to the SCM, and
Enter its URL in the account's SCM configuration on the Stack Spot Portal.
---
## Requirements
- Account with a supported SCM provider.
---
## Release Notes
...
13 changes: 13 additions & 0 deletions docs_action/pt-br/doc.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
## Sobre
Action para criar um workflow em um repositório para que esse seja utilizado como repositório de execução de workflows da StackSpot,
permitindo a criação de Apps, Infra e execução de actions pelo Portal.
---
## Implementação
Essa action irá criar um workflow de acordo com o provider selecionado, após isso basta comitar os arquivos para o SCM, e
informar a url do mesmo na configuração de SCM da conta no Portal da Stack Spot.
---
## Requerimentos
- Conta em algum provider de SCM suportado.
---
## Notas da Release
...
13 changes: 13 additions & 0 deletions docs_plugin/en-us/doc.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
## About
Plugin to create a workflow in a repository so that it can be used as a repository for executing StackSpot workflows,
allowing the creation of Apps, Infrastructure and execution of actions through the Portal.
---
## Implementation
This plugin will create a workflow according to the selected provider, after that just commit the files to the SCM, and
Enter its URL in the account's SCM configuration on the Stack Spot Portal.
---
## Requirements
- Account with a supported SCM provider.
---
## Release Notes
...
13 changes: 13 additions & 0 deletions docs_plugin/pt-br/doc.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
## Sobre
Plugin para criar um workflow em um repositório para que esse seja utilizado como repositório de execução de workflows da StackSpot,
permitindo a criação de Apps, Infra e execução de actions pelo Portal.
---
## Implementação
Esse plugin irá criar um workflow de acordo com o provider selecionado, após isso basta comitar os arquivos para o SCM, e
informar a url do mesmo na configuração de SCM da conta no Portal da Stack Spot.
---
## Requerimentos
- Conta em algum provider de SCM suportado.
---
## Notas da Release
...
92 changes: 44 additions & 48 deletions plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,59 +2,55 @@ schema-version: v2
kind: plugin
metadata:
name: setup-runner
display-name: setup-runner
display-name: Setup Runner
description: Plugin to setup StackSpot workflows
version: 0.0.1
version: 1.0.0
picture: plugin.png
spec:
type: app
compatibility:
- python
about: stackspot-actions/setup-stackspot-workflows/docs/about.md
implementation: stackspot-actions/setup-stackspot-workflows/docs/implementation.md
release-notes: stackspot-actions/setup-stackspot-workflows/docs/release-notes-0.0.1.md
requirements: stackspot-actions/setup-stackspot-workflows/docs/requirements.md
- python
docs:
pt_br: docs_plugin/pt-br/doc.md
en_us: docs_plugin/en-us/doc.md
repository: https://github.com/stack-spot/stackspot-workflows-action
technologies: # Ref: https://docs.stackspot.com/docs/create-stacks/yaml-files/yaml/#technologies
- Api
technologies:
- Api
inputs:
- label: SCM provider
name: provider
type: text
items:
- Azure
- Bitbucket
- Github
- Gitlab
- label: SCM provider
name: provider
type: text
items:
- Azure
- Bitbucket
- Github
- Gitlab
hooks:
- type: render-templates
trigger: after-render
path: workflow-templates/azure
condition:
variable: provider
operator: ==
value: Azure

- type: render-templates
trigger: after-render
path: workflow-templates/github
condition:
variable: provider
operator: ==
value: Github

- type: render-templates
trigger: after-render
path: workflow-templates/bitbucket
condition:
variable: provider
operator: ==
value: Bitbucket

- type: render-templates
trigger: after-render
path: workflow-templates/gitlab
condition:
variable: provider
operator: ==
value: Gitlab
- type: render-templates
trigger: after-render
path: workflow-templates/azure
condition:
variable: provider
operator: ==
value: Azure
- type: render-templates
trigger: after-render
path: workflow-templates/github
condition:
variable: provider
operator: ==
value: Github
- type: render-templates
trigger: after-render
path: workflow-templates/bitbucket
condition:
variable: provider
operator: ==
value: Bitbucket
- type: render-templates
trigger: after-render
path: workflow-templates/gitlab
condition:
variable: provider
operator: ==
value: Gitlab
29 changes: 14 additions & 15 deletions stackspot-actions/azure/create-repo-azure/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,21 @@ metadata:
version: 0.0.1
spec:
type: python
about: docs/about.md
usage: docs/usage.md
release-notes: docs/release-notes.md
requirements: docs/requirements.md
implementation: docs/implementation.md
inputs:
- label: Project name
name: project_name
type: text
required: true
help: Input the Azure devOps project name, if it does not exist it will be created
- label: Repository name
name: name
type: text
required: true
help: Input the Azure devOps repository name, if it does not exist it will be created
- label: Project name
name: project_name
type: text
required: true
help: Input the Azure devOps project name, if it does not exist it will be created
- label: Repository name
name: name
type: text
required: true
help: Input the Azure devOps repository name, if it does not exist it will be
created
python:
workdir: .
script: script.py
docs:
pt_br: docs/pt-br/doc.md
en_us: docs/en-us/doc.md
Loading