mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-04-24 19:32:48 +00:00
Setting up test infrastructure pipeline v7
This commit is contained in:
parent
4760262059
commit
f9c2fa0d2d
1 changed files with 20 additions and 0 deletions
20
.github/workflows/setup-infra-pipeline.yml
vendored
20
.github/workflows/setup-infra-pipeline.yml
vendored
|
@ -36,6 +36,26 @@ jobs:
|
|||
cd cicd
|
||||
git clone https://x-access-token:${{ secrets.INFRA_GITHUB_TOKEN }}@github.com/Piasecki-grid/grid-capstone-terraform-infra.git
|
||||
|
||||
|
||||
- name: Create resources for remote backend
|
||||
run: |
|
||||
az group create --name tfstate-rg --location eastus
|
||||
|
||||
az storage account create \
|
||||
--name tfstatestorageaccount \
|
||||
--resource-group tfstate-rg \
|
||||
--location eastus \
|
||||
--sku Standard_LRS \
|
||||
--kind StorageV2
|
||||
|
||||
az storage container create \
|
||||
--name tfstate \
|
||||
--account-name tfstatestorageaccount
|
||||
|
||||
az ad sp create-for-rbac \
|
||||
--name "terraform-github-actions" \
|
||||
--role Contributor \
|
||||
--scopes /subscriptions/${{ secrets.AZURE_SUBSCRIPTION_ID }}
|
||||
|
||||
- name: Terraform Init
|
||||
run: |
|
||||
|
|
Loading…
Reference in a new issue