-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feature/asignar-voluntario
# Conflicts: # src/lib/service.ts # src/lib/supabase/server.ts
- Loading branch information
Showing
20 changed files
with
1,081 additions
and
2,222 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
GITHUB_TOKEN= | ||
NEXT_PUBLIC_SUPABASE_URL= | ||
NEXT_PUBLIC_SUPABASE_ANON_KEY= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Code quality checks | ||
|
||
on: | ||
push: | ||
branches: | ||
- '**' | ||
|
||
jobs: | ||
quality: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: '18' | ||
|
||
- name: Install dependencies | ||
run: npm ci | ||
|
||
- name: Run ESLint | ||
run: npm run lint | ||
|
||
- name: Check formatting | ||
run: npm run prettier:check | ||
|
||
- name: Build app | ||
env: | ||
NEXT_PUBLIC_SUPABASE_URL: ${{ secrets.SUPABASE_URL }} | ||
NEXT_PUBLIC_SUPABASE_ANON_KEY: ${{ secrets.SUPABASE_ANON_KEY }} | ||
run: npm run build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,7 @@ spec: | |
serviceAccountName: datadog-agent | ||
containers: | ||
- name: emergency-cv--webapp | ||
image: "localhost:30500/emergency-cv/webapp:VAR_GITHUB_COMMIT_HASH" | ||
image: 'localhost:30500/emergency-cv/webapp:VAR_GITHUB_COMMIT_HASH' | ||
ports: | ||
- containerPort: 3000 | ||
env: | ||
|
@@ -42,37 +42,37 @@ spec: | |
image: gcr.io/datadoghq/agent:latest | ||
env: | ||
- name: DD_API_KEY | ||
value: "VAR_DATADOG_API_KEY" | ||
value: 'VAR_DATADOG_API_KEY' | ||
- name: DD_SITE | ||
value: "datadoghq.eu" | ||
value: 'datadoghq.eu' | ||
- name: DD_LOGS_ENABLED | ||
value: "true" | ||
value: 'true' | ||
- name: DD_LOGS_CONFIG_CONTAINER_COLLECT_ALL | ||
value: "true" | ||
value: 'true' | ||
- name: DD_APM_ENABLED | ||
value: "true" | ||
value: 'true' | ||
- name: DD_APM_NON_LOCAL_TRAFFIC | ||
value: "true" | ||
value: 'true' | ||
- name: DD_KUBELET_TLS_VERIFY | ||
value: "false" | ||
value: 'false' | ||
- name: DD_PROCESS_AGENT_ENABLED | ||
value: "true" | ||
value: 'true' | ||
- name: DD_CONTAINER_EXCLUDE | ||
value: "image:gcr.io/datadoghq/agent" | ||
value: 'image:gcr.io/datadoghq/agent' | ||
- name: DD_CONTAINER_INCLUDE_METRICS | ||
value: "name:emergency-cv--webapp" | ||
value: 'name:emergency-cv--webapp' | ||
- name: DD_CONTAINER_INCLUDE_LOGS | ||
value: "name:emergency-cv--webapp" | ||
value: 'name:emergency-cv--webapp' | ||
- name: DD_SYSTEM_PROBE_ENABLED | ||
value: "false" | ||
value: 'false' | ||
- name: DD_KUBERNETES_KUBELET_HOST | ||
valueFrom: | ||
fieldRef: | ||
fieldPath: status.hostIP | ||
securityContext: | ||
privileged: false | ||
capabilities: | ||
add: [ "SYS_ADMIN" ] | ||
add: ['SYS_ADMIN'] | ||
ports: | ||
- containerPort: 8126 | ||
name: traceport | ||
|
@@ -117,13 +117,13 @@ spec: | |
- name: kaniko | ||
image: gcr.io/kaniko-project/executor:latest | ||
args: | ||
- "--context=git://[email protected]/pedrolivaresanchez/emergency-cv.git" | ||
- "--dockerfile=Dockerfile" | ||
- "--destination=idl-apps--container-registry-service:5000/emergency-cv/webapp:VAR_GITHUB_COMMIT_HASH" | ||
- "--insecure" | ||
- "--skip-tls-verify" | ||
- "--build-arg=NEXT_PUBLIC_SUPABASE_URL=VAR_SUPABASE_URL" | ||
- "--build-arg=NEXT_PUBLIC_SUPABASE_ANON_KEY=VAR_SUPABASE_ANON_KEY" | ||
- '--context=git://[email protected]/pedrolivaresanchez/emergency-cv.git' | ||
- '--dockerfile=Dockerfile' | ||
- '--destination=idl-apps--container-registry-service:5000/emergency-cv/webapp:VAR_GITHUB_COMMIT_HASH' | ||
- '--insecure' | ||
- '--skip-tls-verify' | ||
- '--build-arg=NEXT_PUBLIC_SUPABASE_URL=VAR_SUPABASE_URL' | ||
- '--build-arg=NEXT_PUBLIC_SUPABASE_ANON_KEY=VAR_SUPABASE_ANON_KEY' | ||
restartPolicy: Never | ||
backoffLimit: 2 | ||
--- | ||
|
@@ -138,7 +138,7 @@ kind: ClusterRole | |
metadata: | ||
name: datadog-agent | ||
rules: | ||
- apiGroups: [ "" ] | ||
- apiGroups: [''] | ||
resources: | ||
- nodes | ||
- nodes/metrics | ||
|
@@ -149,16 +149,16 @@ rules: | |
- services | ||
- endpoints | ||
- events | ||
verbs: [ "get", "list", "watch" ] | ||
- apiGroups: [ "" ] | ||
verbs: ['get', 'list', 'watch'] | ||
- apiGroups: [''] | ||
resources: | ||
- configmaps | ||
resourceNames: [ "datadog-leader-election" ] | ||
verbs: [ "get", "update" ] | ||
- apiGroups: [ "" ] | ||
resourceNames: ['datadog-leader-election'] | ||
verbs: ['get', 'update'] | ||
- apiGroups: [''] | ||
resources: | ||
- configmaps | ||
verbs: [ "create" ] | ||
verbs: ['create'] | ||
--- | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRoleBinding | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
/** @type {import('next').NextConfig} */ | ||
|
||
const nextConfig = { | ||
reactStrictMode: true, | ||
experimental: { | ||
|
Oops, something went wrong.