./release
# use ./release -p to also push built images
Defines the most common configuration while building & pushing.
Lists of Remote Base URL for image uploading.
Example: harbor.custom.cn/foo
Defines how the built images would be named.
Currently only two certain string will auto-formatted:
$BASE
: The root dir, for example we have aalpine/Dockerfile.OpenCV
and$BASE
will be formatted toalpine
$STAGE
: The docker image name, for example we have aDockerfile.OpenCV
and$STAGE
will be formatted toopencv
Every dir contains this file will be considered as a pre-defined dir that can produce docker images. Defines what would be built and image specified configuration. Working example: alpine/detail.yaml
(Directories without this will not process in the release
script)
This list just defines the build order of images and other configs.
#an example base/detail.yaml
produce:
- Foo # will build Dockerfile.Foo firstly as base/foo:latest
- Bar: # will build Dockerfile.Bar secondly as bar/base:0.0.1
strategy: os_depend
version: "0.0.1"
- Dah: # will build Dockerfile.Dah thirdly as dah:latest
strategy: base_stage