Skip to content

boxboat-github-practice/terraform-gcp-actions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Reusable Terraform Actions for GCP

An action that can be used to deploy to GCP with Terraform.

Create a workflow from your repository that looks like this.

jobs:
  terraform:
    runs-on: ubuntu-latest
    name: Terraform
    environment: canary # if you want to use secrets tied to an environment, define an environment in your repository (e.g. 'canary')
    steps:
      - uses: actions/checkout@v3
      - uses: boxboat-github-practice/[email protected]
        with:
          GOOGLE_CREDENTIALS: {{ secrets.GOOGLE_CREDENTIALS }}
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
          terraform-version: 1.1.9

Make sure you add the following permissions in the GitHub workflow.

permissions:
  contents: read
  pull-requests: write

Releases

No releases published

Packages

No packages published