Skip to content

Commit

Permalink
reusable workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
P0NDER0SA committed Sep 6, 2024
1 parent bcf282a commit fca20a2
Showing 1 changed file with 24 additions and 2 deletions.
26 changes: 24 additions & 2 deletions .github/workflows/terragrunt_plan_dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,14 +120,36 @@ jobs:
- 'env/${{env.ENVIRONMENT}}/newrelic/**'
terragrunt-plan-common:
uses: ./.github/workflows/reusable-steps.yml
if: |
always() &&
needs.terragrunt-filter.outputs.common == 'true'
runs-on: ubuntu-latest
needs: terragrunt-filter
uses: ./.github/workflows/reusable-steps.yml
with:
component: common
environment: ${{ env.ENVIRONMENT }}
secrets:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ACCOUNT_ID: ${{ secrets.ACCOUNT_ID }}
OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }}


# terragrunt-plan-ecr:
# uses: ./.github/workflows/reusable-steps.yml
# if: |
# always() &&
# needs.terragrunt-filter.outputs.ecr == 'true' &&
# !contains(needs.*.result, 'failure') &&
# !contains(needs.*.result, 'cancelled')
# needs: terragrunt-filter
# with:
# component: ecr
# environment: ${{ env.ENVIRONMENT }}
# secrets:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# ACCOUNT_ID: ${{ secrets.ACCOUNT_ID }}
# OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }}


# terragrunt-plan-ecr:
# if: |
Expand Down

0 comments on commit fca20a2

Please sign in to comment.