Skip to content

Commit 6382850

Browse files
authored
Merge pull request #1080 from basedosdados/staging
Staging
2 parents 19f7218 + 3e8c654 commit 6382850

File tree

300 files changed

+14845
-2935
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

300 files changed

+14845
-2935
lines changed

.env.example

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
export NODE_ENV="development"
2-
export NEXT_PUBLIC_API_URL="https://development.backend.basedosdados.org"
3-
export NEXT_PUBLIC_SITE_NAME="Base dos Dados"
4-
export NEXT_PORT=3000
2+
export NEXT_PUBLIC_API_URL="http://localhost:8080"
3+
export NEXT_PUBLIC_SITE_NAME="Basedosdados"
4+
export NEXT_PORT=80
5+
export NEXT_PUBLIC_BASE_URL_FRONTEND="http://localhost:3000"

.github/workflows/cd-dev.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,36 @@ jobs:
8686
- hosts:
8787
- "development.basedosdados.org"
8888
secretName: "development-basedosdados-org-tls"
89+
internationalDomains:
90+
- language: "es"
91+
host: "development.basedelosdatos.org"
92+
annotations:
93+
cert-manager.io/issuer: "letsencrypt-production"
94+
kubernetes.io/ingress.class: nginx
95+
nginx.ingress.kubernetes.io/ssl-redirect: "true"
96+
tls:
97+
- hosts:
98+
- "development.basedelosdatos.org"
99+
secretName: "development-basedelosdatos-org-tls"
100+
- language: "en"
101+
host: "development.data-basis.org"
102+
annotations:
103+
cert-manager.io/issuer: "letsencrypt-production"
104+
kubernetes.io/ingress.class: nginx
105+
nginx.ingress.kubernetes.io/ssl-redirect: "true"
106+
tls:
107+
- hosts:
108+
- "development.data-basis.org"
109+
secretName: "development-data-basis-org-tls"
89110
EOF
90111
112+
- name: Debug values.yaml
113+
run: |
114+
echo "Generated values.yaml content:"
115+
cat values.yaml
116+
echo "Validating YAML syntax:"
117+
python3 -c "import yaml; yaml.safe_load(open('values.yaml'))"
118+
91119
- name: Deploy using Helm
92120
run: |
93121
helm upgrade --install basedosdados-website-development charts/basedosdados-website/. -n website -f values.yaml --wait

.github/workflows/cd-prod.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,27 @@ jobs:
8484
- hosts:
8585
- "basedosdados.org"
8686
secretName: "basedosdados-org-tls"
87+
internationalDomains:
88+
- language: "es"
89+
host: "basedelosdatos.org"
90+
annotations:
91+
cert-manager.io/issuer: "letsencrypt-production"
92+
kubernetes.io/ingress.class: nginx
93+
nginx.ingress.kubernetes.io/ssl-redirect: "true"
94+
tls:
95+
- hosts:
96+
- "basedelosdatos.org"
97+
secretName: "basedelosdatos-org-tls"
98+
- language: "en"
99+
host: "data-basis.org"
100+
annotations:
101+
cert-manager.io/issuer: "letsencrypt-production"
102+
kubernetes.io/ingress.class: nginx
103+
nginx.ingress.kubernetes.io/ssl-redirect: "true"
104+
tls:
105+
- hosts:
106+
- "data-basis.org"
107+
secretName: "data-basis-org-tls"
87108
EOF
88109
89110
- name: Deploy using Helm

.github/workflows/cd-staging.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,27 @@ jobs:
8484
- hosts:
8585
- "staging.basedosdados.org"
8686
secretName: "staging-basedosdados-org-tls"
87+
internationalDomains:
88+
- language: "es"
89+
host: "staging.basedelosdatos.org"
90+
annotations:
91+
cert-manager.io/issuer: "letsencrypt-production"
92+
kubernetes.io/ingress.class: nginx
93+
nginx.ingress.kubernetes.io/ssl-redirect: "true"
94+
tls:
95+
- hosts:
96+
- "staging.basedelosdatos.org"
97+
secretName: "staging-basedelosdatos-org-tls"
98+
- language: "en"
99+
host: "staging.data-basis.org"
100+
annotations:
101+
cert-manager.io/issuer: "letsencrypt-production"
102+
kubernetes.io/ingress.class: nginx
103+
nginx.ingress.kubernetes.io/ssl-redirect: "true"
104+
tls:
105+
- hosts:
106+
- "staging.data-basis.org"
107+
secretName: "staging-data-basis-org-tls"
87108
EOF
88109
89110
- name: Deploy using Helm

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,7 @@ next-env.d.ts
3939

4040
# Environments
4141
.env
42+
43+
# Blog migration
44+
next/medium-export.zip
45+
next/medium-export/

0 commit comments

Comments
 (0)