Skip to content

Commit

Permalink
chore: bundestag-io setup sync mode
Browse files Browse the repository at this point in the history
Signed-off-by: Manuel Ruck <[email protected]>
  • Loading branch information
Manuel Ruck committed May 1, 2024
1 parent b909226 commit 5a93f52
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 5 deletions.
10 changes: 10 additions & 0 deletions bundestag.io/api/garden.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ include:
- ./infra/Dockerfile.service
spec:
dockerfile: ./infra/Dockerfile.service
targetStage:
$if: ${this.mode == "sync"}
$then: dev
$else: runner
buildArgs:
NODE_VERSION: 18.18.2
SERVICE: bundestag.io
Expand All @@ -28,6 +32,12 @@ spec:
kind: Deployment
name: bundestag-io-api

sync:
paths:
- containerPath: /app/bundestag.io/api/src
sourcePath: src
mode: one-way

# Patch the K8s manifests for the api service so that we can set the correct image
patchResources:
- name: bundestag-io-api
Expand Down
5 changes: 3 additions & 2 deletions bundestag.io/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"build": "tsc",
"prebuild": "pnpm run generate",
"start": "node build/index.js",
"dev": "ts-node-dev --watch=resolvers,schemas --respawn src/index.ts",
"dev": "tsx watch src/index.ts",
"predev": "pnpm run generate",
"lint": "pnpm lint:ts && pnpm lint:exports",
"lint:es": "eslint src --ext .js,.jsx,.ts,.tsx",
"lint:ts": "tsc --noEmit",
Expand Down Expand Up @@ -50,8 +51,8 @@
"eslint-plugin-prettier": "5.0.1",
"jest": "29.7.0",
"prettier": "3.0.3",
"ts-node-dev": "2.0.0",
"ts-unused-exports": "10.0.1",
"tsx": "^4.8.2",
"typescript": "5.2.2"
}
}
18 changes: 15 additions & 3 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5a93f52

Please sign in to comment.