diff --git a/.github/workflows/publish-docker.yml b/.github/workflows/publish-docker.yml index fbb3c2c2fc..5162b2b364 100644 --- a/.github/workflows/publish-docker.yml +++ b/.github/workflows/publish-docker.yml @@ -1,16 +1,20 @@ name: "π³ Publish Docker" on: - workflow_call: + push: + branches: + - main + tags: + - v* jobs: publish: runs-on: ubuntu-latest + permissions: + contents: read + packages: write outputs: version: ${{ steps.get_version.outputs.version }} short_sha: ${{ steps.get_commit.outputs.sha_short }} steps: - - name: Setup Depot CLI - uses: depot/setup-action@v1 - - name: β¬οΈ Checkout repo uses: actions/checkout@v3 with: @@ -50,10 +54,10 @@ jobs: password: ${{ secrets.GITHUB_TOKEN }} - name: π³ Build image and push to GitHub Container Registry - uses: depot/build-push-action@v1 + uses: docker/build-push-action@v3 with: file: ./docker/Dockerfile platforms: linux/amd64,linux/arm64 tags: | - ghcr.io/triggerdotdev/trigger.dev:${{ steps.get_version.outputs.version }} + ghcr.io/estubmo/trigger.dev:${{ steps.get_version.outputs.version }} push: true diff --git a/apps/webapp/app/presenters/JobListPresenter.server.ts b/apps/webapp/app/presenters/JobListPresenter.server.ts index d39accaf73..ddb0683be9 100644 --- a/apps/webapp/app/presenters/JobListPresenter.server.ts +++ b/apps/webapp/app/presenters/JobListPresenter.server.ts @@ -115,15 +115,15 @@ export class JobListPresenter { }[] >` SELECT * FROM ( - SELECT - "id", - "createdAt", - "status", + SELECT + "id", + "createdAt", + "status", "jobId", ROW_NUMBER() OVER(PARTITION BY "jobId" ORDER BY "createdAt" DESC) as rn - FROM - "JobRun" - WHERE + FROM + "triggerdotdev"."JobRun" + WHERE "jobId" IN (${Prisma.join(jobs.map((j) => j.id))}) ) t WHERE rn = 1;`;