Manifest: build-product-image/action.yml
Note
The build step is not concerned with registries, ports, paths to repositories, but still requires
a name. If the name does not contain a registry, hub.docker.com
(?) is implied. Therefore,
localhost
will be used as the registry so as to avoid accidental interactions with an unintended
registry.
Ideally, bake should be refactored to use localhost
as the registry for the previously mentioned
reason (whether or not that is behind some option).
This action builds a single container image using bake
. It does the following work:
- Free disk space to avoid running out of disk space during larger builds.
- Build the image using
bake
which internally usesdocker buildx
. - Temporarily retag the image to use
localhost
instead ofdocker.stackable.tech/stackable
. - Produce output values to be used in later steps.
This action is considered to be the single source of truth regarding image index tag and image manifest tag. All subsequent tasks must use these values to ensure consistency.
Currently, bake provides the following ouput in the bake-target-tags
file:
docker.stackable.tech/stackable/kafka:3.4.1-stackable0.0.0-dev-amd64
Until bake supports the ability to specify the registry, this action will retag the image as:
localhost/kafka:3.4.1-stackable0.0.0-dev-amd64
Tip
For descriptions of the inputs and outputs, see the complete build-product-image action.
product-name
(eg:kafka
)product-version
(eg:3.4.1
)image-tools-version
(eg:0.0.13
)build-cache-username
(required)build-cache-password
(required)bake-config-file
(defaults to./conf.py
)sdp-version
(defaults to:0.0.0-dev
)extra-tag-data
(optional, eg.pr321
)
image-manifest-tag
(eg:3.4.1-stackable0.0.0-dev-amd64
)suggested-image-index-manifest-tag
(eg:3.4.1-stackable0.0.0-dev
)