Remove EKS service and update broker version #272
Workflow file for this run
This file contains hidden or 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: plan | |
on: | |
pull_request: | |
env: | |
AWS_ACCESS_KEY_ID: "${{ secrets.AWS_ACCESS_KEY_ID }}" | |
AWS_SECRET_ACCESS_KEY: "${{ secrets.AWS_SECRET_ACCESS_KEY }}" | |
BUCKET: "${{ secrets.BUCKET }}" | |
REGION: "${{ secrets.REGION }}" | |
KEY: "ssb-tfstate" | |
ENCRYPT: "true" | |
jobs: | |
plan-staging: | |
name: plan (staging) | |
runs-on: ubuntu-latest | |
environment: staging | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
TF_VAR_cf_username: ${{ secrets.TF_VAR_cf_username }} | |
TF_VAR_cf_password: ${{ secrets.TF_VAR_cf_password }} | |
TF_VAR_aws_access_key_id: ${{ secrets.TF_VAR_aws_access_key_id }} | |
TF_VAR_aws_secret_access_key: ${{ secrets.TF_VAR_aws_secret_access_key }} | |
steps: | |
- name: checkout | |
uses: actions/checkout@v3 | |
- name: prep applications | |
run: | | |
./app-setup-solr.sh | |
./app-setup-smtp.sh | |
- name: OpenTofu plan (staging) | |
uses: dflook/tofu-plan@v1 | |
with: | |
path: . | |
label: staging | |
workspace: staging | |
var_file: terraform.staging.tfvars | |
backend_config: > | |
bucket=${{ env.BUCKET }}, | |
key=${{ env.KEY }}, | |
region=${{ env.REGION }}, | |
encrypt=${{ env.ENCRYPT }}, | |
access_key=${{ env.AWS_ACCESS_KEY_ID }}, | |
secret_key=${{ env.AWS_SECRET_ACCESS_KEY }} | |
plan-production: | |
name: plan (production) | |
runs-on: ubuntu-latest | |
environment: production | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
TF_VAR_cf_username: ${{ secrets.TF_VAR_cf_username }} | |
TF_VAR_cf_password: ${{ secrets.TF_VAR_cf_password }} | |
TF_VAR_aws_access_key_id: ${{ secrets.TF_VAR_aws_access_key_id }} | |
TF_VAR_aws_secret_access_key: ${{ secrets.TF_VAR_aws_secret_access_key }} | |
steps: | |
- name: checkout | |
uses: actions/checkout@v3 | |
- name: prep applications | |
run: | | |
./app-setup-solr.sh | |
./app-setup-smtp.sh | |
- name: OpenTofu plan (production) | |
uses: dflook/tofu-plan@v1 | |
with: | |
path: . | |
label: production | |
workspace: default | |
var_file: terraform.production.tfvars | |
backend_config: > | |
bucket=${{ env.BUCKET }}, | |
key=${{ env.KEY }}, | |
region=${{ env.REGION }}, | |
encrypt=${{ env.ENCRYPT }}, | |
access_key=${{ env.AWS_ACCESS_KEY_ID }}, | |
secret_key=${{ env.AWS_SECRET_ACCESS_KEY }} |