Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 16 additions & 16 deletions .github/workflows/dbac-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,6 @@ on:
branches:
- main

# paths:
# - 'versions.tf'
# - 'provider.tf'
# - 'tfvars/wsl.tfvars'
# - 'entrypoint.tf'
# - 'modules/**'
# - .github/workflows/dbac-deploy.yaml

# workflow_run:
# workflows: ["Generate terraform docs"] # Name of the tf-docs.yaml workflow
# types:
# - completed
# branches:
# - main

env:
# Set the default postgresql user admin password:
TF_VAR_postgresql_default_password: ${{ secrets.POSTGRES_USER_DEFAULT_PASSWORD }}
Expand All @@ -48,7 +33,6 @@ jobs:
git-push: "true"

dbac_deploy:
name: 'dbac deploy'
runs-on: DbaC
needs: [docs]

Expand All @@ -59,12 +43,27 @@ jobs:
permissions:
contents: 'read'
id-token: 'write'
pull-requests: 'read'

steps:
# Checkout the repository to the GitHub Actions runner
- name: Checkout
uses: 'actions/checkout@v4'

- name: Detect changes
uses: dorny/paths-filter@v3
id: detect-changes
with:
filters: |
terraform:
- 'versions.tf'
- 'provider.tf'
- 'tfvars/wsl.tfvars'
- 'entrypoint.tf'
- 'modules/**'
- .github/workflows/dbac-deploy.yaml
continue-on-error: false

# Install Node.js
- name: Setup Node.js
uses: actions/setup-node@v3
Expand All @@ -85,6 +84,7 @@ jobs:

# Initialize a new or existing Terraform working directory by creating initial files, loading any remote state, downloading modules, etc.
- name: "Terraform Initialize"
if: steps.detect-changes.outputs.terraform == 'true'
id: init
run: |
terraform init -backend-config="backends/wsl.hcl" -input=false
Expand Down
Loading