matti / buildtagpush

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About


Languages

Language:Shell 96.4%Language:Dockerfile 3.6%