mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-04-25 20:02:47 +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
|
@ -37,6 +37,26 @@ jobs:
|
||||||
git clone https://x-access-token:${{ secrets.INFRA_GITHUB_TOKEN }}@github.com/Piasecki-grid/grid-capstone-terraform-infra.git
|
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
|
- name: Terraform Init
|
||||||
run: |
|
run: |
|
||||||
cd cicd/grid-capstone-terraform-infra
|
cd cicd/grid-capstone-terraform-infra
|
||||||
|
|
Loading…
Reference in a new issue