Skip to content

johnwchadwick/cloud-builders-community

This branch is 133 commits behind GoogleCloudPlatform/cloud-builders-community:master.

Folders and files

NameName
Last commit message
Last commit date
Feb 1, 2019
Jul 22, 2020
Sep 30, 2019
Sep 18, 2019
Jul 10, 2019
Jul 10, 2019
Jul 4, 2019
May 31, 2019
Aug 26, 2020
Jul 10, 2019
Jul 10, 2019
Dec 10, 2020
Feb 5, 2021
Jul 10, 2019
Jul 10, 2019
Jul 10, 2019
Oct 14, 2020
Mar 31, 2021
Jul 10, 2019
Jan 7, 2020
Oct 28, 2019
Mar 25, 2020
Jul 10, 2019
Jul 10, 2019
Jul 24, 2018
Jul 10, 2019
Feb 14, 2021
May 7, 2020
Jul 10, 2019
Jan 27, 2021
Apr 2, 2021
May 16, 2020
Feb 5, 2021
Oct 12, 2020
Jul 10, 2019
Apr 21, 2020
Oct 5, 2020
Aug 6, 2020
Jul 10, 2019
Dec 2, 2019
Jan 27, 2021
Jul 10, 2019
Jul 10, 2019
Jul 27, 2020
Mar 10, 2021
Jun 23, 2020
May 16, 2021
Jul 10, 2019
Jul 10, 2019
Jul 26, 2019
Jul 10, 2019
Jul 10, 2019
Mar 8, 2020
Mar 18, 2021
Sep 16, 2019
Feb 21, 2020
Jan 28, 2021
Jul 10, 2019
Jul 10, 2019
Jul 10, 2019
Jan 17, 2020
Jul 10, 2019
Jan 27, 2021
Jul 10, 2019
Jan 27, 2021
Aug 6, 2019
May 27, 2020
Sep 2, 2020
Jul 10, 2019
Jul 31, 2020
Sep 10, 2019
May 14, 2020
Jul 10, 2019
Jul 10, 2019
Sep 14, 2019
May 4, 2021
Sep 12, 2019
Sep 11, 2019
Jul 10, 2019
Oct 23, 2019
Jul 10, 2019
Jan 9, 2020
Jun 2, 2020
Jul 10, 2019
Jul 10, 2019
Oct 11, 2019
Jun 9, 2020
Feb 10, 2021
Apr 9, 2020
Jul 10, 2019
Jul 10, 2019
Feb 23, 2021
Feb 23, 2021
Jul 10, 2019
Jul 31, 2020
Oct 18, 2019
Oct 24, 2019
Sep 10, 2019
Aug 18, 2021
Jan 26, 2021
Jul 10, 2019
Sep 7, 2019
Oct 24, 2017
Oct 24, 2017
Feb 1, 2019
Jul 10, 2019

Repository files navigation

Google Cloud Build community images

This repository contains source code for community-contributed Docker images. You can use these images as build steps for Google Cloud Build.

These are not official Google products.

How to use a community-contributed build step

Google Cloud Build executes a build as a series of build steps. Each build step is run in a Docker container. See the Cloud Build documentation for more details about builds and build steps.

Before you begin

  1. Select or create a Google Cloud project.
  2. Enable billing for your project.
  3. Enable the Cloud Build API.
  4. Install and initialize the Cloud SDK.

Build the build step from source

To use a community-contributed Docker image as a build step, you need to download the source code from this repo and build the image.

The example below shows how to download and build the image for the packer build step on a Linux or Mac OS X workstation:

  1. Clone the cloud-builders-community repo:

    $ git clone https://github.com/GoogleCloudPlatform/cloud-builders-community
  2. Go to the directory that has the source code for the packer Docker image:

    $ cd cloud-builders-community/packer
  3. Build the Docker image:

    $ gcloud builds submit --config cloudbuild.yaml .
    
  4. View the image in Google Container Registry:

    $ gcloud container images list --filter packer

Use the build step with Cloud Build build

Once you've built the Docker image, you can use it as a build step in a Cloud Build build.

For example, below is the packer build step in a YAML config file, ready to be used in a Cloud Build build:

- name: 'gcr.io/$PROJECT_ID/packer'
  args:
  - build
  - -var
  - project_id=$PROJECT_ID
  - packer.json

Each build step's examples directory has an example of how you can use the build step. See the example for the packer builder.

Contributing

We welcome contributions! See CONTRIBUTING for more information on how to get started. Please include a cloudbuild.yaml and at least one working example in your pull request.

Contribution Requirements

In order to accept your contribution, it must:

  • make clear that the builder image is pushed to the builder's project's registry. E.g., it specifies images: ['gcr.io/$PROJECT_ID/the-tool']. The builder will not be pushed to the gcr.io/cloud-builders registry.
  • include a simple sanity test in the cloudbuild.yaml config that builds and pushes the image. This can be as simple as invoking the tool with --help, and it ensures the tool is installed correctly and in the expected location within the image.
  • include some basic example describing how to use it. This helps new users get acquainted with the builder, and helps us ensure the builder continues to work as intended.

License

This source code is licensed under Apache 2.0. Full license text is available in LICENSE.

Support

To file issues and feature requests against these builder images, the usage of these build steps or the Cloud Build API in general, create an issue in this repo.

If you are experiencing an issue with the Cloud Build service or have a feature request, e-mail google-cloud-dev@googlegroups.com or see our Getting support documentation.

About

Community-contributed images for Google Cloud Build

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 32.8%
  • Dockerfile 26.4%
  • Shell 22.8%
  • Python 4.7%
  • PowerShell 2.5%
  • TypeScript 2.2%
  • Other 8.6%