-
Notifications
You must be signed in to change notification settings - Fork 0
/
escape.yml
107 lines (93 loc) · 3.26 KB
/
escape.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
name: extension-docker
version: 0.5.@
logo: logo.png
description: |
This release is made to be extended and can be used to build and push
Docker images based on the Dockerfile (or `docker_file`) of the parent
project. It can also make available existing images from remote
repositories, and skip the build and deploy step altogether (see
the `import_docker_image` variable)
depends:
- stdlib-latest
includes:
- LICENSE
- README.md
- imported_image
inputs:
- id: docker_import_image
default: false
type: bool
description: |
Instead of building a docker image assume the image already exists in the
provided `docker_repository`. If this is used at build time the
`docker_image`, `docker_image_version` and `docker_repository` values are
compiled into the release and can't be overridden at deploy time.
- id: docker_image
friendly: Docker Image
default: ""
type: string
description: |
The name of the Docker image to build. Don't specify the repository or the
version here, instead use the 'Docker Repository' and 'Docker Image Version'
variables. If `import_docker_image` was used at build time this value will
be ignored at deploy time.
- id: docker_image_version
friendly: Docker Image Version
type: string
default: $__concat("v", $this.version)
description: |
The version with which to tag the Docker image. If `import_docker_image`
was used at build time this value will be ignored at deploy time.
- id: docker_file
friendly: Docker File
type: string
default: Dockerfile
description: |
The path of the Dockerfile to use. Don't forget to add this file to the
`includes` section if it's needed at deploy time. If `import_docker_image`
is set, or was set at build time, this value be ignored.
- id: docker_repository
default: ""
friendly: Docker Repository
type: string
description: |
If set the image will be tagged with this repository and pushed on every
successful build. If `import_docker_image` was used at build time this value
will be ignored at deploy time.
- id: docker_cmd
friendly: Docker Command
type: list[string]
default: [docker]
description: |
The Docker command to use (['docker'] by default). On GCP a value of
['gcloud', 'docker', '--'] is recommended to ease credentials
- id: docker_username
friendly: Docker Username
default: ""
description: The Docker username to use for login. Leave blank to skip. Not used
when `import_docker_image` is set.
- id: docker_password
friendly: Docker Password
default: ""
description: The Docker password to use for login. Only used when `docker_username`
is not blank.
- id: docker_email
friendly: Docker Email
default: ""
description: The Docker email to use for login. Leave blank to skip. Only used when
`docker_username` is not blank.
- id: docker_server
friendly: Docker Server
default: ""
description: |
The Docker server to login to. Only used when docker_username is not blank (e.g.
https://eu.gcr.io)
outputs:
- id: image
description: "The Docker image that this release produces. If docker_repository
is set the value will be included. \n"
friendly: Docker Image
type: string
build: build_and_push_image.py
deploy: build_and_push_image.py
destroy: destroy.py