-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
28 changed files
with
9,530 additions
and
13,143 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 |
---|---|---|
|
@@ -6,19 +6,21 @@ orbs: | |
jobs: | ||
build: | ||
docker: | ||
- image: cimg/node:20.12 | ||
- image: cimg/node:22.13 | ||
steps: | ||
- checkout | ||
- restore_cache: | ||
key: dependency-v3-cache-{{ checksum "package-lock.json" }} | ||
key: dependency-v4-cache-{{ checksum "pnpm-lock.yaml" }} | ||
- run: | ||
name: Install dependencies | ||
command: npm install | ||
command: | | ||
sudo npm install -g [email protected] | ||
pnpm install | ||
- run: | ||
name: Build | ||
command: npm run build | ||
- save_cache: | ||
key: dependency-v3-cache-{{ checksum "package-lock.json" }} | ||
key: dependency-v4-cache-{{ checksum "pnpm-lock.yaml" }} | ||
paths: | ||
- ./node_modules | ||
- persist_to_workspace: | ||
|
@@ -28,7 +30,7 @@ jobs: | |
test: | ||
resource_class: large | ||
docker: | ||
- image: cimg/node:20.12 | ||
- image: cimg/node:22.13 | ||
- image: postgres:17-alpine | ||
environment: | ||
POSTGRES_DB: api_test | ||
|
@@ -38,7 +40,7 @@ jobs: | |
steps: | ||
- checkout | ||
- restore_cache: | ||
key: dependency-v3-cache-{{ checksum "package-lock.json" }} | ||
key: dependency-v4-cache-{{ checksum "pnpm-lock.yaml" }} | ||
- run: | ||
name: Wait for PostgreSQL | ||
command: | | ||
|
@@ -88,7 +90,7 @@ jobs: | |
registry-url: us.gcr.io | ||
pulumi_preview: | ||
docker: | ||
- image: cimg/node:20.12 | ||
- image: cimg/node:22.13 | ||
steps: | ||
- checkout | ||
- pulumi/login | ||
|
@@ -103,7 +105,7 @@ jobs: | |
pulumi_up: | ||
circleci_ip_ranges: true | ||
docker: | ||
- image: cimg/node:20.12 | ||
- image: cimg/node:22.13 | ||
environment: | ||
USE_GKE_GCLOUD_AUTH_PLUGIN: 'True' | ||
steps: | ||
|
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 +1 @@ | ||
20.12 | ||
22.13 |
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,3 +1,6 @@ | ||
name: api | ||
runtime: nodejs | ||
runtime: | ||
name: nodejs | ||
options: | ||
packagemanager: pnpm | ||
description: Infrastructure for daily-api |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 +1 @@ | ||
20.12 | ||
22.13 |
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,4 @@ | ||
FROM node:20-bookworm-slim | ||
FROM node:22.13-bookworm-slim | ||
RUN apt-get update \ | ||
&& apt-get install -y ca-certificates dumb-init \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
@@ -8,11 +8,13 @@ WORKDIR /opt/app | |
|
||
COPY .npmrc . | ||
COPY package.json . | ||
COPY package-lock.json . | ||
COPY pnpm-lock.yaml . | ||
COPY patches patches | ||
COPY queries queries | ||
|
||
RUN npm i --only=prod | ||
RUN npm install -g [email protected] | ||
|
||
RUN pnpm install --frozen-lockfile | ||
|
||
COPY 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,12 +9,15 @@ WORKDIR /opt/app | |
|
||
COPY .npmrc . | ||
COPY package.json . | ||
COPY package-lock.json . | ||
COPY pnpm-lock.yaml . | ||
COPY patches patches | ||
COPY queries queries | ||
|
||
RUN npm install -g [email protected] | ||
|
||
RUN npm i -g nodemon | ||
RUN npm i | ||
|
||
RUN pnpm install --frozen-lockfile | ||
|
||
COPY . . | ||
|
||
|
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
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
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
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
Oops, something went wrong.