Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ci): fix ci #118

Merged
merged 3 commits into from
Aug 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down