diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 0c18658..3f54316 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -16,14 +16,6 @@ jobs: uses: actions/checkout@v4 # Task 1.1: - # - # Answer 1.1: - - name: Install dependencies - run: yarn install - - - name: Run tests - run: yarn test - # deploy-infrastructure: name: Deploy infrastructure with Terraform @@ -60,12 +52,7 @@ jobs: - name: Run Terraform plan run: terraform plan - # Task 3.3: - # - # Answer 3.3: - - name: Run Terraform apply - run: terraform apply -auto-approve - # + # Task 2.3: - name: Get Terraform output id: terraform-output @@ -85,11 +72,7 @@ jobs: runs-on: ubuntu-latest needs: # Task 1.2: - # - # Answer 1.2: - - frontend-tests - deploy-infrastructure - # permissions: contents: read id-token: write diff --git a/README.md b/README.md index 529b650..0c151d5 100644 --- a/README.md +++ b/README.md @@ -180,8 +180,9 @@ deploy-infrastructure: - name: Run Terraform plan run: terraform plan + # legger til dette steget: - name: Run Terraform apply - run: terraform apply -auto-approve # legg til denne linjen + run: terraform apply -auto-approve ``` diff --git a/terraform/main.tf b/terraform/main.tf index c7b04ca..71ba965 100644 --- a/terraform/main.tf +++ b/terraform/main.tf @@ -9,8 +9,7 @@ resource "azurerm_resource_group" "devops" { resource "azurerm_static_web_app" "devops" { name = "${var.my_name}-webapp" - resource_group_name = azurerm_resource_group.devops.name - location = local.location + # Task 2.2: } output "resource_group_name" {