Skip to content

Latest commit

 

History

History
23 lines (19 loc) · 634 Bytes

README.md

File metadata and controls

23 lines (19 loc) · 634 Bytes

buildtagpush

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]"