Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
examples @ 5bfd4ed
.dockerignore
Dockerfile
README.md
cloudbuild.yaml

README.md

Pulumi CLI

This builder installs the Pulumi CLI in a Node 8-based Docker image. You can use this image to install other language tools too. If you would like to see the Pulumi builder for other languages, please contact us on our community Slack.

What is Pulumi?

Use your favorite languages to build, deploy, and manage cloud software – on any cloud – with one workflow for developers and operators alike. Learn more at pulumi.com.

Quick Start

  1. Build this image and add it to your gcr repo
$ git clone git@github.com:GoogleCloudPlatform/cloud-builders-community
$ cd cloud-builders/pulumi
$ gcloud builds submit .
  1. Add the steps to your cloudbuild.yaml

Create a project on Pulumi quickly using one of our examples. Click Deploy to get started now.

The following cloud build configuration snippet uses build variable substitution as a quickstart example. Substitutions are not treated as sensitive values in Cloud Build. Sensitive values such as access tokens, and other secrets should encrypt such environment variables.

Learn how to encrypt env variables and use them in your build configuration here.

$ cd my-project
$ cat >> cloudbuild.yaml
steps:
- name: gcr.io/$PROJECT_ID/pulumi-node
  entrypoint: /bin/sh
  args:
  - '-c'
  - 'yarn install && pulumi login && pulumi stack select <stack_name> && pulumi preview'
  env: ["PULUMI_ACCESS_TOKEN=$_INSECURE_SUBSTITUTION_PULUMI_ACCESS_TOKEN_FOR_TESTING"]
CTRL-D
  1. Deploy and select a template

  2. Submit a manual build of your project to Cloud Build when you are ready

$ cd my-project
$ gcloud builds submit .

At this point you can automate the build using triggers via GCP Repos or Github. See this doc on how to integrate Pulumi into your CI/CD setup.

You can’t perform that action at this time.