Skip to content

Commit

Permalink
correct deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
rtertiaer committed Jul 3, 2024
1 parent df3961a commit e3e986d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ jobs:
steps:
- name: Check out repository code
uses: actions/checkout@v4
with:
submodules: 'true'
- name: log in to GCP
id: auth
uses: google-github-actions/auth@v2
Expand All @@ -24,8 +26,8 @@ jobs:
- name: 'Set up gcloud'
uses: 'google-github-actions/setup-gcloud@v2'
- name: Build & deploy site
steps:
- run: apt install hugo
- run: hugo
- run: hugo deploy
- run: gcloud compute url-maps invalidate-cdn-cache blog-prod --path "/*" --async
run: |
sudo apt install hugo
hugo
hugo deploy
gcloud compute url-maps invalidate-cdn-cache blog-prod --path "/*" --async
2 changes: 1 addition & 1 deletion content/post/testing.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "Testing"
date: 2024-06-28T11:56:25-04:00
draft: true
draft: false
---

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
2 changes: 1 addition & 1 deletion opentofu/deploy.tf
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ resource "google_project_iam_binding" "static_site_bucket" {

condition {
title = "only_static_bucket_contents"
expression = "resource.type == 'storage.googleapis.com/Object' && resource.name.startsWith('projects/_/buckets/${google_storage_bucket.static_site.name}/')"
expression = "resource.name.startsWith('projects/_/buckets/${google_storage_bucket.static_site.name}')"
}
}

Expand Down

0 comments on commit e3e986d

Please sign in to comment.