Skip to content

Commit

Permalink
apps: deployment components: add buildpacks
Browse files Browse the repository at this point in the history
  • Loading branch information
kamaln7 committed Nov 4, 2022
1 parent 5554ad4 commit 6f7c739
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 2 deletions.
1 change: 1 addition & 0 deletions specification/resources/apps/models/apps_buildpack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ properties:
version:
title: The buildpack's version number.
type: string
format: semver
example: "1.2.0"
major_version:
title: The major component of the buildpack's version number. This signifies the "major version line" of the buildpack.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,10 @@ properties:
title: The digest of the container image that was used for this service if an Image source was used
type: string
example: sha256:0285555a44f1a279ea91428ebb7ec27d2110f623739838837b070611060cd992
buildpacks:
type: array
items:
$ref: apps_buildpack.yml
description: >-
The list of buildpacks used to build this component. The buildpacks' full version numbers are included.
type: object
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,10 @@ properties:
title: The commit hash of the repository that was used to build this static site
type: string
example: 54d4a727f457231062439895000d45437c7bb405
buildpacks:
type: array
items:
$ref: apps_buildpack.yml
description: >-
The list of buildpacks used to build this component. The buildpacks' full version numbers are included.
type: object
14 changes: 12 additions & 2 deletions specification/resources/apps/responses/examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -205,13 +205,11 @@ app:
cnb_versioning:
buildpacks:
- id: digitalocean/python
version: "1.0.0"
major_version: 1
latest: true
name: Python
docs_link: https://docs.digitalocean.com/products/app-platform/reference/buildpacks/python/
- id: digitalocean/node
version: "0.0.5"
major_version: 0
latest: false
name: Node.js (v0, deprecated)
Expand All @@ -238,6 +236,12 @@ deployments:
services:
- name: web
source_commit_hash: 9a4df0b8e161e323bc3cdf1dc71878080fe144fa
buildpacks:
- id: digitalocean/go
major_version: 1
latest: true
name: Golang
docs_link: https://docs.digitalocean.com/products/app-platform/reference/buildpacks/go/
phase_last_updated_at: 0001-01-01T00:00:00Z
created_at: 2020-07-28T18:00:00Z
updated_at: 2020-07-28T18:00:00Z
Expand Down Expand Up @@ -308,6 +312,12 @@ deployment:
services:
- name: web
source_commit_hash: 9a4df0b8e161e323bc3cdf1dc71878080fe144fa
buildpacks:
- id: digitalocean/go
major_version: 1
latest: true
name: Golang
docs_link: https://docs.digitalocean.com/products/app-platform/reference/buildpacks/go/
phase_last_updated_at: 0001-01-01T00:00:00Z
created_at: 2020-07-28T18:00:00Z
updated_at: 2020-07-28T18:00:00Z
Expand Down

0 comments on commit 6f7c739

Please sign in to comment.