Skip to content

Commit

Permalink
ci: add clutch_env and env vars to build action
Browse files Browse the repository at this point in the history
  • Loading branch information
nbugden committed Nov 10, 2021
1 parent cf795ab commit 7a0b951
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@ name: build

on:
workflow_call:
# inputs:
# terraform_version:
# required: true
# type: number
inputs:
clutch_env:
required: true
type: string
secrets:
github_token:
required: true

jobs:
build:
setup:
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand Down Expand Up @@ -59,3 +59,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.github_token }}
TERRAFORM_VERSION: 1.0.8
TF_WORKSPACE: ${{ inputs.clutch_env }}
TF_VAR_AWS_DEFAULT_REGION: ca-central-1
TF_VAR_AWS_ACCESS_KEY_ID: ${{ secrets.DEV_AWS_ACCESS_KEY_ID }}
TF_VAR_AWS_SECRET_ACCESS_KEY: ${{ secrets.DEV_AWS_SECRET_ACCESS_KEY }}

0 comments on commit 7a0b951

Please sign in to comment.