This is simple example shows how to build and push docker images daemonless We will be using kaniko to build it and crane to push to the registry
Seems like kaniko
is not yet production ready product as it suffers from different bugs
- Authentication with docker registry v2 seems to be broken. Because of this, we need to create a tarball from that image and use crane to actually ship it.
- When using
--no-push
flag and--tarPath
to store it, themanifest.json
is null, so using--destination image:lastest
is used to avoid that bug.
This example assumes that the pipeline also configured with the following environment variables to authenticated with Dockerhub
DOCKER_HUB_REPOSITORY_USERNAME
DOCKER_HUB_REPOSITORY_PASSWORD
DOCKER_REPOSITRY
- name of the repository to pushIMAGE:TAG
- In
daemonless/Dockerfile
there is the Dockerfile that the steps incodefresh.yaml
used, it has bothkaniko
andcrane
binaries