Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 9b6f8f9

Browse filesBrowse files
authored
v3: provider and coordinator updates (triggerdotdev#927)
* add zod socket * start using zod socket * use zod socket for shared queue * use shared provider shell * update k8s provider task ops * set otlp endpoint * update docker actions and fix builds * remove unused types * update injected secret key env var name * complete socket.io types to schemas migration * update env example to new v3 key var * fix coordinator build * set task run label * ensure attempt id is always set * increase prod worker timeout * set otlp endpoint for on runs * pass otlp env var to prod worker * auto-remove completed index jobs
1 parent f50cee6 commit 9b6f8f9
Copy full SHA for 9b6f8f9

28 files changed

+1,268-1,045Lines changed: 1268 additions & 1045 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎.github/workflows/publish-dev.yml‎

Copy file name to clipboardExpand all lines: .github/workflows/publish-dev.yml
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,11 @@ jobs:
5252
echo "BUILD_ID=${{ matrix.package }}-${sha}-${ts}" >> "$GITHUB_OUTPUT"
5353
5454
- name: Set up Docker Buildx
55-
uses: docker/setup-buildx-action@v2
55+
uses: docker/setup-buildx-action@v3
5656

5757
# ..to avoid rate limits when pulling images
5858
- name: Login to DockerHub
59-
uses: docker/login-action@v2
59+
uses: docker/login-action@v3
6060
with:
6161
username: ${{ secrets.DOCKERHUB_USERNAME }}
6262
password: ${{ secrets.DOCKERHUB_TOKEN }}
@@ -67,7 +67,7 @@ jobs:
6767
6868
# ..to push image
6969
- name: 🐙 Login to GitHub Container Registry
70-
uses: docker/login-action@v2
70+
uses: docker/login-action@v3
7171
with:
7272
registry: ghcr.io
7373
username: ${{ github.repository_owner }}
Collapse file

‎apps/coordinator/Containerfile‎

Copy file name to clipboardExpand all lines: apps/coordinator/Containerfile
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@ RUN corepack enable
5454
ENV NODE_ENV production
5555

5656
COPY --from=cri-tools --chown=node:node /cri-tools/crictl /usr/local/bin
57-
COPY --from=builder --chown=node:node /app/apps/coordinator/dist/index.cjs ./index.cjs
57+
COPY --from=builder --chown=node:node /app/apps/coordinator/dist/index.mjs ./index.mjs
5858

5959
EXPOSE 8000
6060

6161
USER node
6262

63-
CMD [ "/usr/bin/dumb-init", "--", "/usr/local/bin/node", "./index.cjs" ]
63+
CMD [ "/usr/bin/dumb-init", "--", "/usr/local/bin/node", "./index.mjs" ]
Collapse file

‎apps/coordinator/package.json‎

Copy file name to clipboardExpand all lines: apps/coordinator/package.json
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"type": "module",
88
"scripts": {
99
"build": "npm run build:bundle",
10-
"build:bundle": "esbuild src/index.ts --bundle --outfile=dist/index.cjs --platform=node",
10+
"build:bundle": "esbuild src/index.ts --bundle --outfile=dist/index.mjs --platform=node --format=esm --target=esnext --banner:js=\"const require = createRequire(import.meta.url);\"",
1111
"build:image": "docker build -f Containerfile . -t coordinator",
1212
"dev": "tsx --no-warnings=ExperimentalWarning --require dotenv/config --watch src/index.ts",
1313
"start": "tsx src/index.ts",

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.