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
8 changes: 0 additions & 8 deletions src/fileStore/file-map.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,6 @@ export function getFileMaps(envDir: string): Map<AplKind, FileMap> {
name: 'ingress',
})

maps.set('AplKms', {
kind: 'AplKms',
envDir,
pathGlob: `${envDir}/env/settings/*kms.yaml`,
pathTemplate: 'env/settings/kms.yaml',
name: 'kms',
})

maps.set('AplObjectStorage', {
kind: 'AplObjectStorage',
envDir,
Expand Down
188 changes: 97 additions & 91 deletions src/openapi/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,105 +81,111 @@ AplBuildSpec:
default: true
description: Select to scan source code.

buildMode:
title: Mode
description: Choose between Docker or Buildpacks.
DockerBuild:
title: Docker
type: object
oneOf:
- title: Docker
x-hideTitle: true
description: Build from source with a Dockerfile.
properties:
docker:
additionalProperties: false
type: object
x-hideTitle: true
description: Build from source with a Dockerfile.
title: Docker
properties:
docker:
additionalProperties: false
type: object
title: Docker
properties:
repoUrl:
description: The URL of the Git repo that contains the application code.
$ref: 'definitions.yaml#/url'
title: Repo URL
path:
description: The path to the Dockerfile to execute (defaults to ./Dockerfile).
type: string
default: ./Dockerfile
revision:
description: This can be a commit, a tag, or a branch.
$ref: 'definitions.yaml#/wordCharacterPattern'
default: HEAD
envVars:
title: Environment variables
type: array
items:
type: object
description: Environment variable to set during build-time.
properties:
name:
title: Name
type: string
example: MY_ENV_VAR
value:
title: Value
type: string
example: my-value
required:
- name
- value
required:
- repoUrl
type:
repoUrl:
description: The URL of the Git repo that contains the application code.
$ref: 'definitions.yaml#/url'
title: Repo URL
path:
description: The path to the Dockerfile to execute (defaults to ./Dockerfile).
type: string
enum:
- docker
default: docker
default: ./Dockerfile
revision:
description: This can be a commit, a tag, or a branch.
$ref: 'definitions.yaml#/wordCharacterPattern'
default: HEAD
envVars:
title: Environment variables
type: array
items:
type: object
description: Environment variable to set during build-time.
properties:
name:
title: Name
type: string
example: MY_ENV_VAR
value:
title: Value
type: string
example: my-value
required:
- name
- value
required:
- repoUrl
type:
type: string
enum:
- docker
- type
- title: Buildpacks
default: docker
required:
- docker
- type

Buildpacks:
title: Buildpacks
type: object
x-hideTitle: true
description: Build from source using Buildpacks.
properties:
buildpacks:
additionalProperties: false
type: object
x-hideTitle: true
description: Build from source using Buildpacks.
properties:
buildpacks:
additionalProperties: false
type: object
properties:
repoUrl:
description: The URL of the Git repo that contains the application code.
$ref: 'definitions.yaml#/url'
title: Repo URL
path:
description: 'Optional: A subpath within the repo where the source is located'
type: string
default: ''
revision:
description: This can be a commit, a tag, or a branch.
$ref: 'definitions.yaml#/wordCharacterPattern'
default: HEAD
envVars:
title: Environment variables
type: array
items:
type: object
description: Environment variable to set during build-time.
properties:
name:
title: Name
type: string
value:
title: Value
type: string
required:
- name
- value
required:
- repoUrl
type:
repoUrl:
description: The URL of the Git repo that contains the application code.
$ref: 'definitions.yaml#/url'
title: Repo URL
path:
description: 'Optional: A subpath within the repo where the source is located'
type: string
enum:
- buildpacks
default: buildpacks
default: ''
revision:
description: This can be a commit, a tag, or a branch.
$ref: 'definitions.yaml#/wordCharacterPattern'
default: HEAD
envVars:
title: Environment variables
type: array
items:
type: object
description: Environment variable to set during build-time.
properties:
name:
title: Name
type: string
value:
title: Value
type: string
required:
- name
- value
required:
- repoUrl
type:
type: string
enum:
- buildpacks
- type
default: buildpacks
required:
- buildpacks
- type

buildMode:
title: Mode
description: Choose between Docker or Buildpacks.
type: object
oneOf:
- $ref: '#/DockerBuild'
- $ref: '#/Buildpacks'
Loading