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 4, 2024
1 parent 1e6a7a9 commit 7846ed5
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .github/workflows/pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,20 @@ jobs:

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

- name: Install jq and gh
run: |
sudo apt-get update
sudo apt-get install -y jq
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-key C99B11DEB97541F0
sudo apt-add-repository https://cli.github.com/packages
sudo apt-get update
sudo apt-get install -y gh
- name: Run branch protection script
run: ./check_branch_protection.sh
env:
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }}

- name: Change directory to Terraform config
run: cd components
Expand Down Expand Up @@ -58,4 +72,4 @@ jobs:
-var="location=UK South" \
-var="override_action=plan" \
-var="github_token=${{ secrets.PAT_TOKEN }}"
terraform apply -auto-approve tfplan
terraform apply -auto-approve tfplan

0 comments on commit 7846ed5

Please sign in to comment.