diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml index e70065e3c..573203c76 100644 --- a/.github/workflows/dev.yml +++ b/.github/workflows/dev.yml @@ -142,6 +142,8 @@ jobs: - name: Update build info run: pnpm run chore:update-build-info + - name: Trigger build + run: pnpm nx run @triliumnext/server:build - name: Set IMAGE_NAME to lowercase run: echo "IMAGE_NAME=${IMAGE_NAME,,}" >> $GITHUB_ENV @@ -154,7 +156,7 @@ jobs: - name: Build and export to Docker uses: docker/build-push-action@v6 with: - context: . + context: apps/server file: ${{ matrix.dockerfile }} load: true tags: ${{ env.TEST_TAG }} diff --git a/.github/workflows/main-docker.yml b/.github/workflows/main-docker.yml index 2312f247d..d6e1fece8 100644 --- a/.github/workflows/main-docker.yml +++ b/.github/workflows/main-docker.yml @@ -56,12 +56,12 @@ jobs: run: npx playwright install --with-deps - name: Run the TypeScript build - run: npm run build + run: npm nx run @triliumnext/server:build - name: Build and export to Docker uses: docker/build-push-action@v6 with: - context: . + context: apps/server file: ${{ matrix.dockerfile }} load: true tags: ${{ env.TEST_TAG }}