Skip to content

Commit

Permalink
hi
Browse files Browse the repository at this point in the history
  • Loading branch information
sfujiwara committed Apr 22, 2024
1 parent 7076f14 commit 21a379a
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 6 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: GitHub Actions

on:
push:
branches:
- main

jobs:
deploy:
permissions:
contents: 'read'
id-token: 'write'

runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
26 changes: 25 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,33 @@

https://sfujiwara.com

## Architecture

```mermaid
graph LR;
USER(User) --> DNS[Cloud DNS]
subgraph LB[Load Balancer]
direction TB
IP[External IP] --> MAP[URL Map] --> BE[Backend]
end
subgraph NEG[Serverless NEG]
RUN[Cloud Run]
end
DNS --> IP
BE --> NEG
```

## Deployment

### Terraform

```shell
make terraform-apply
```

### Docker Image

```shell
Expand All @@ -19,5 +42,6 @@ make docker-push
make cloud-run-deploy
```

### Manual Settings
### Memo

- Fix name server settings of registrar (onamae.com)
13 changes: 13 additions & 0 deletions terraform/google_dns.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
resource "google_dns_managed_zone" "sfujiwara_com" {
name = "sfujiwara-com"
dns_name = "sfujiwara.com."
description = "DNS zone for sfujiwara.com."
}

resource "google_dns_record_set" "sfujiwara_com" {
name = "sfujiwara.com."
type = "A"
ttl = 300
managed_zone = google_dns_managed_zone.sfujiwara_com.name
rrdatas = [google_compute_global_address.sfujiwara_com.address]
}
5 changes: 0 additions & 5 deletions terraform/google_dns_managed_zone.tf

This file was deleted.

0 comments on commit 21a379a

Please sign in to comment.