Image to build, tag and push docker images. Great for Google Cloud Build.
- BuildKit caching
- Pulls images needed (otherwise fails on google cloud build with registry mirror, see moby/moby#40262 (comment))
- Easy to follow output with seconds since beginning
A sample cloudbuild.yaml:
steps:
- name: mattipaksula/buildtagpush
env:
- "REGISTRY=gcr.io/your-project"
- "IMAGE=your-image"
- "TAG=[latest]"
- "CACHE_TAG=[$TAG]"
- "WORKDIR=[/workspace]"
- "DOCKERFILE=[Dockerfile]"
- "BUILD_OPTS=['']"
- "TRIES=[6]"