Our most popular Steps for Google Cloud Platform

Wercker is a Docker-Native CI/CD Automation platform for Kubernetes & Microservice Deployments

Aaron Rice
Aaron Rice
November 7, 2016

Check out the Wercker Steps Registry for useful Steps that carry out automation tasks in your Pipelines. Our most popular steps for integrating directly with Google Cloud Platfrom include:

GCP Integrations

The Wercker Steps Registry contains a plethora of useful Steps that carry out automation tasks in your Pipelines. Our most popular steps for integrating with Google Cloud Platform are:

Authenticate Service Account

This community-submitted Step allows you to authenticate with Google Cloud Platform using Google service accounts, which let your pipelines interact with GCP Resources.
build:
steps:
- bigtruedata/gcloud-auth-service-account:
key: $GCP_SERVICE_ACCOUNT_JSON
- script:
name: List apps currenty deployed on App Engine
code: |
gcloud app instances list

The above example would authenticate a Google Service Account JSON key passed as an environment variable from Wercker Web, then run the gcloud SDK and instruct it to list the app instances currently running within your GCP account.

App Engine Deploy

The App Engine Deploy Step is community-submitted. It deploys an application YAML file to the Google App Engine platform.

For example:
deploy:
steps:
- bash-template
- bigtruedata/gcloud-app-deploy@1.0.0
filename: my-ruby-app.yaml

This would deploy your ruby application to Google Cloud Platform's App Engine, assuming you create the required YAML file for app engine to consume.

The Bash Template Step is extremely helpful for creating deployment target configuration files using environment variables from your Wercker pipeline runs.

Kubectl

The Wercker-submitted Kubectl Step on the Steps Registry allows you to interact with Kubernetes clusters, including clusters launched on Google Container Engine or vanilla Google Compute Engine.

For example:
deploy:
steps:
- kubectl:
server: $GKE_KUBERNETES_MASTER
username: $GKE_KUBERNETES_USERNAME
password: $GKE_KUBERNETES_PASSWORD
command: create -f my-wordpress-app-deployment.json

This example would have used the kubectl tool to create a new deployment for your Wordpress application on your Kubernetes Cluster.

Create your own

The above examples are just a tiny snapshot of the most popular Wercker Steps that integrate with Google Compute Platform.

Check out the Steps Registry for the full directory, and if we happen to be missing a Step that performs an action you require on GCP, you can use our Steps documentation to write and submit it back to the community!

Like Wercker?

Why not join our early access club. We’ll invite you to try our beta products and treat you nice.

As usual, if you want to stay in the loop follow us on twitter @wercker or hop on our public slack channel. If it’s your first time using Wercker, be sure to tweet out your #greenbuilds, and we’ll send you some swag!

 

Topics: Product, Containers, Steps