Skip to content

Commit df63059

Browse files
author
Kamal Nasser
committed
apps: deployment components: add buildpacks
1 parent 967c801 commit df63059

File tree

4 files changed

+25
-2
lines changed

4 files changed

+25
-2
lines changed

specification/resources/apps/models/apps_buildpack.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ properties:
66
version:
77
title: The buildpack's version number.
88
type: string
9+
format: semver
910
example: "1.2.0"
1011
major_version:
1112
title: The major component of the buildpack's version number. This signifies the "major version line" of the buildpack.

specification/resources/apps/models/apps_deployment_service.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,10 @@ properties:
1111
title: The digest of the container image that was used for this service if an Image source was used
1212
type: string
1313
example: sha256:0285555a44f1a279ea91428ebb7ec27d2110f623739838837b070611060cd992
14+
buildpacks:
15+
type: array
16+
items:
17+
$ref: apps_buildpack.yml
18+
description: >-
19+
The list of buildpacks used to build this component. The buildpacks' full version numbers are included.
1420
type: object

specification/resources/apps/models/apps_deployment_static_site.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,10 @@ properties:
77
title: The commit hash of the repository that was used to build this static site
88
type: string
99
example: 54d4a727f457231062439895000d45437c7bb405
10+
buildpacks:
11+
type: array
12+
items:
13+
$ref: apps_buildpack.yml
14+
description: >-
15+
The list of buildpacks used to build this component. The buildpacks' full version numbers are included.
1016
type: object

specification/resources/apps/responses/examples.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,13 +205,11 @@ app:
205205
cnb_versioning:
206206
buildpacks:
207207
- id: digitalocean/python
208-
version: "1.0.0"
209208
major_version: 1
210209
latest: true
211210
name: Python
212211
docs_link: https://docs.digitalocean.com/products/app-platform/reference/buildpacks/python/
213212
- id: digitalocean/node
214-
version: "0.0.5"
215213
major_version: 0
216214
latest: false
217215
name: Node.js (v0, deprecated)
@@ -238,6 +236,12 @@ deployments:
238236
services:
239237
- name: web
240238
source_commit_hash: 9a4df0b8e161e323bc3cdf1dc71878080fe144fa
239+
buildpacks:
240+
- id: digitalocean/go
241+
major_version: 1
242+
latest: true
243+
name: Golang
244+
docs_link: https://docs.digitalocean.com/products/app-platform/reference/buildpacks/go/
241245
phase_last_updated_at: 0001-01-01T00:00:00Z
242246
created_at: 2020-07-28T18:00:00Z
243247
updated_at: 2020-07-28T18:00:00Z
@@ -308,6 +312,12 @@ deployment:
308312
services:
309313
- name: web
310314
source_commit_hash: 9a4df0b8e161e323bc3cdf1dc71878080fe144fa
315+
buildpacks:
316+
- id: digitalocean/go
317+
major_version: 1
318+
latest: true
319+
name: Golang
320+
docs_link: https://docs.digitalocean.com/products/app-platform/reference/buildpacks/go/
311321
phase_last_updated_at: 0001-01-01T00:00:00Z
312322
created_at: 2020-07-28T18:00:00Z
313323
updated_at: 2020-07-28T18:00:00Z

0 commit comments

Comments
 (0)