Skip to content
Branch: master
Find file History
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
examples Adds 'tags: [cloud-builders-community]' to all builders (#261) Jul 10, 2019
Dockerfile chore: add angular cli cloud builders Oct 22, 2018
Dockerfile_next chore: add angular cli cloud builders Oct 22, 2018
Dockerfile_v1
Dockerfile_v6 chore: add angular cli cloud builders Oct 22, 2018
Dockerfile_v7
README.md
cloudbuild.yaml

README.md

The ng (Angular CLI) Cloud Builders

This build step invokes the ng command provided by the Angular CLI distributed in Google Cloud Build.

Arguments passed to this builder will be passed to the ng command directly, allowing callers to run any ng command.

Available builders

For convenience, we have included different versions of the Angular CLI:

  • gcr.io/cloud-builders/ng:v1: provides the v1.* legacy branch
  • gcr.io/cloud-builders/ng:v6: provides the v6.* branch
  • gcr.io/cloud-builders/ng:latest: provides the latest stable branch
  • gcr.io/cloud-builders/ng: same as latest
  • gcr.io/cloud-builders/ng:next: provides the next unstable branch

How to use?

In order to use call one of these builder, simply invoke the builder (and version), for instance:

steps:
- name: 'gcr.io/$PROJECT_ID/ng:next'
  args: ['build', '--prod']

Or, if you are maintaining a legacy Angular project:

steps:
- name: 'gcr.io/$PROJECT_ID/ng:v1'
  args: ['test', '--sourcemap=false']

See the examples folder for a complete example.

Building these builders

To build these builders, run the following command in this directory:

$ gcloud builds submit . --config=cloudbuild.yaml
You can’t perform that action at this time.