cloudbuild

module
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 18, 2020 License: MIT

README

cloudbuild

Abstract

cloudbuild is a command line tool for Google Cloud Build. Still work in progress.

Features

  • Alternative for gcloud builds submit with some limitations:
    • Unsupported options:
      • --no-source
      • --async
      • --no-cache
      • --disk-size
      • --machine-type
      • --timeout
      • --tag / -t
  • More robust behaviors.
    • Create source archives in the same way with docker.
    • Retries operations.

Usage

Using docker is recommended.

Using service account
$ docker run --rm \
    -v $(pwd):/workspace \
    -v /path/to/credentials.json:/credentials.json \
    -e GOOGLE_APPLICATION_CREDENTIALS=/credentials.json \
    ikedam/cloudbuild .
Using user credentials
$ docker run -ti --name gcloud-config google/cloud-sdk:alpine gcloud auth application-default login
$ docker run --rm \
    --volumes-from gcloud-config \
    -v "$(pwd)":/workspace \
    ikedam/cloudbuild .

Directories

Path Synopsis
cmd
cloudbuild command
Package log is the package wrapping logrus
Package log is the package wrapping logrus

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL