Skip to content

Commit

Permalink
adding config + pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
ConnorOKane-Kainos committed Jul 3, 2024
1 parent 801fde5 commit f39dffd
Showing 1 changed file with 12 additions and 16 deletions.
28 changes: 12 additions & 16 deletions .github/workflows/pipeline.yaml
Original file line number Diff line number Diff line change
@@ -1,35 +1,31 @@

name: Rule Sets Pipeline

on:
pull_request:
branches:
- rule-sets-DTSPO-17918
push:
branches:
- rule-sets-DTSPO-17918

permissions:
id-token: write
contents: read

jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: 'Az CLI login'
uses: azure/login@v1
with:
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
subscription-id: ${{ secrets.DCD_CFT_SANDBOX_SUBSCRIPTION }}
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
subscription-id: ${{ secrets.DCD_CFT_SANDBOX_SUBSCRIPTION }}

- name: Setup Terraform
uses: hashicorp/setup-terraform@v1

- name: Change directory to Terraform config
run: cd components


- name: Initialize Terraform
working-directory: components
env:
Expand All @@ -43,7 +39,7 @@ jobs:
-backend-config="storage_account_name=rulesetsa" \
-backend-config="container_name=tfstate" \
-backend-config="key=terraform.tfstate"
- name: Plan and Apply Terraform
working-directory: components
env:
Expand Down

0 comments on commit f39dffd

Please sign in to comment.