Steps (plugins) are really handy for fixing problems you didn’t even realize you had, not to mention help increase productivity.
What is a Step?
A Step is a self-contained bash script or compiled binary for accomplishing specific automation tasks. For example, a pip install, kubectl or a Docker push.
Because they are small isolated actions, they are portable, repeatable and reusable. Making them awesome.
Here are some of our most popular steps for integrating directly with Google Cloud Platfrom:
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 AccountThis community-submitted Step allows you to authenticate with Google Cloud Platform using Google service accounts, which let your pipelines interact with GCP Resources.
name: List apps currenty deployed on App Engine
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 DeployThe App Engine Deploy Step is community-submitted. It deploys an application YAML file to the Google App Engine platform.
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.
KubectlThe 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.
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!
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!