Created
September 18, 2020 00:45
-
-
Save kevinkarwaski/6312f20ed8505b0de2671a6b118409b7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Terragrunt Plan All (dry run) | |
on: | |
pull_request: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
AWS_DEFAULT_REGION: us-east-1 | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Install Terraform and Terragrunt | |
run: | | |
brew tap rocketinsights/tgenv | |
brew install tfenv tgenv | |
tfenv install | |
tgenv install | |
- name: Get Versions | |
run: | | |
terragrunt --version | |
terraform --version | |
- name: Setup infra modules deploy key | |
run: | | |
mkdir ~/.ssh | |
echo "${{ secrets.INFRA_MODULES_DEPLOY_KEY }}" > ~/.ssh/id_rsa | |
chmod 600 ~/.ssh/id_rsa | |
ssh-keyscan -t rsa github.com | |
- name: Terragrunt plan-all | |
run: terragrunt plan-all |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment