Skip to content

Latest commit

 

History

History
49 lines (33 loc) · 1.46 KB

README.md

File metadata and controls

49 lines (33 loc) · 1.46 KB

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/$PROJECT_ID/ng:v1: provides the v1.* legacy branch
  • gcr.io/$PROJECT_ID/ng:v6: provides the v6.* branch
  • gcr.io/$PROJECT_ID/ng:v7: provides the v7.* branch
  • gcr.io/$PROJECT_ID/ng:v8: provides the v8.* branch
  • gcr.io/$PROJECT_ID/ng:latest: provides the latest stable branch
  • gcr.io/$PROJECT_ID/ng: same as ng:latest
  • gcr.io/$PROJECT_ID/ng:next: provides the next unstable branch

Getting started

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

steps:
  - name: 'gcr.io/$PROJECT_ID/ng'
    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