Modify relationship between CompanyProfile and CompanyProfileMapping #88
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: 'Deploy PPN with Terraform' | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
permissions: | |
contents: read | |
jobs: | |
deploy_terraform: | |
name: Deploy with terraform | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: hashicorp/setup-terraform@v1 | |
- name: Set up AWS credentials | |
run: | | |
mkdir -p ~/.aws | |
touch ~/.aws/credentials | |
echo "[default] | |
aws_access_key_id = ${AWS_ACCESS_KEY_ID} | |
aws_secret_access_key = ${AWS_SECRET_ACCESS_KEY}" > ~/.aws/credentials | |
env: | |
AWS_ACCESS_KEY_ID: ${{ secrets.DEPLOY_AWS_TERRAFORM_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.DEPLOY_AWS_TERRAFORM_SECRET_ACCESS_KEY }} | |
- name: "intialize terraform" | |
run: terraform init | |
- name: "validate terraform" | |
run: terraform validate -no-color | |
- name: "Run terraform apply" | |
run: terraform apply -auto-approve -no-color |