Skip to content

Commit 9b6f8f9

Browse 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

28 files changed

Lines changed: 1268 additions & 1045 deletions

File tree

.github/workflows/publish-dev.yml

Lines 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 }}

apps/coordinator/Containerfile

Lines 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" ]

apps/coordinator/package.json

Lines 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)