Exporting final images to arbitrary repositories
The command allows exporting images to an arbitrary repository according to a template specified by the --tag
option (build if needed). All meta-information related to werf is removed from the exported images, and then images are completely under the user's responsibility.
The --tag
option can be specified multiple times. It is necessary to use image name shortcut %image%
or %image_slug%
if multiple images are exported (e.g. REPO:TAG-%image%
or REPO-%image%:TAG
).
For instance, export images to Docker Hub and GitHub Container Registry with the following command:
werf export --tag=company/project:%image%-latest --tag=ghcr.io/company/project/%image%:latest