diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index da4c6aee..86bed7ed 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -59,6 +59,7 @@ jobs: env: GIT_COMMIT: ${{ github.sha }} with: + context: . push: true build-args: GIT_COMMIT=${{ github.sha }} tags: ${{ steps.meta.outputs.tags }} diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 291e4858..75ef2a1e 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -38,6 +38,16 @@ jobs: - run: pnpm run build # to make sure this version can be build env: GIT_COMMIT: ${{ github.sha }} + - name: docker build + uses: docker/build-push-action@v6 + env: + GIT_COMMIT: ${{ github.sha }} + with: + context: . + push: false + build-args: GIT_COMMIT=${{ github.sha }} + tags: tests + labels: tests - run: pnpm run coveralls env: COVERALLS_REPO_TOKEN: ${{ secrets.CODEALLS_REPO_TOKEN }} diff --git a/Dockerfile b/Dockerfile index 961064fd..34b85482 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,7 +7,7 @@ RUN apk add --no-cache libc6-compat g++ make py3-pip WORKDIR /app # Install dependencies based on the preferred package manager -COPY package.json yarn.lock* package-lock.json* pnpm-lock.yaml* src/types.g.ts ./ +COPY package.json yarn.lock* package-lock.json* pnpm-lock.yaml* ./src/types.g.ts ./ RUN corepack enable pnpm && pnpm i --frozen-lockfile FROM base AS builder