Codesphere · Arazzo Workflow

Deploy an application to a Codesphere workspace

Version 1.0.0

Create a workspace, run the prepare and run pipeline stages, and confirm it is live.

1 workflow 1 source API 1 provider
View Spec View on GitHub CompanySaasCloudDeploymentDeveloper ToolsPlatform as a ServiceInfrastructureSovereign CloudCI/CDManaged ServicesArazzoWorkflows

Provider

codesphere

Workflows

deploy-workspace
Create a workspace and deploy it through the CI pipeline.
5 steps inputs: teamId, workspaceId
1
createWorkspace
workspaces-createWorkspace
2
prepare
workspaces-startPipelineStage
3
pipelineStatus
workspaces-pipelineStatus
4
run
workspaces-startPipelineStage
5
status
workspaces-getWorkspaceStatus

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Deploy an application to a Codesphere workspace
  version: 1.0.0
  summary: Create a workspace, run the prepare and run pipeline stages, and confirm it is live.
sourceDescriptions:
- name: codesphere
  url: ../openapi/codesphere-openapi-original.json
  type: openapi
workflows:
- workflowId: deploy-workspace
  summary: Create a workspace and deploy it through the CI pipeline.
  inputs:
    type: object
    properties:
      teamId: { type: integer }
      workspaceId: { type: integer }
  steps:
  - stepId: createWorkspace
    operationId: workspaces-createWorkspace
    requestBody:
      contentType: application/json
      payload:
        teamId: $inputs.teamId
    outputs:
      workspaceId: $response.body#/id
  - stepId: prepare
    operationId: workspaces-startPipelineStage
    parameters:
    - name: workspaceId
      in: path
      value: $steps.createWorkspace.outputs.workspaceId
    - name: stage
      in: path
      value: prepare
  - stepId: pipelineStatus
    operationId: workspaces-pipelineStatus
    parameters:
    - name: workspaceId
      in: path
      value: $steps.createWorkspace.outputs.workspaceId
    - name: stage
      in: path
      value: prepare
  - stepId: run
    operationId: workspaces-startPipelineStage
    parameters:
    - name: workspaceId
      in: path
      value: $steps.createWorkspace.outputs.workspaceId
    - name: stage
      in: path
      value: run
  - stepId: status
    operationId: workspaces-getWorkspaceStatus
    parameters:
    - name: workspaceId
      in: path
      value: $steps.createWorkspace.outputs.workspaceId