Skip to content

Change directory to deployment #2

Change directory to deployment

Change directory to deployment #2

Workflow file for this run

name: Deployment CI
on:
push:
branches:
- main
- hotfix/**
- release/**
- test/**
pull_request:
jobs:
infrastructure:
name: infrastructure
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ${{ secrets.AWS_REGION }}
- name: Setup Terraform CLI
uses: hashicorp/[email protected]
- name: Deploy infrastructure
run: |
echo `pwd`
echo "tfpath ${{ github.event.inputs.tfpath }}"
cd ./deployment
echo "** Running Terraform Init **"
terraform init