Skip to content

Commit

Permalink
remove fasit
Browse files Browse the repository at this point in the history
  • Loading branch information
baksetercx committed Oct 18, 2024
1 parent b830e3f commit 511d730
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 21 deletions.
19 changes: 1 addition & 18 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
</details>
Expand Down
3 changes: 1 addition & 2 deletions terraform/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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" {
Expand Down

0 comments on commit 511d730

Please sign in to comment.