Skip to content

Commit a538087

Browse files
committed
fix(ci): docker build
1 parent a0c084b commit a538087

File tree

3 files changed

+19
-3
lines changed

3 files changed

+19
-3
lines changed

.github/workflows/publish-docker.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,21 +17,24 @@ jobs:
1717
packages: write
1818
steps:
1919
- uses: actions/checkout@v4
20+
2021
- uses: docker/metadata-action@v5
2122
id: meta
2223
with:
2324
images: |
2425
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}/playground
26+
2527
- uses: docker/login-action@v3
2628
with:
2729
registry: ${{ env.REGISTRY }}
2830
username: ${{ github.actor }}
2931
password: ${{ secrets.GITHUB_TOKEN }}
32+
3033
- name: Build package/playground
3134
uses: docker/build-push-action@v5
3235
with:
3336
context: .
34-
file: ./packages/playground/Dockerfile
3537
push: true
38+
target: playground
3639
tags: ${{ steps.meta.outputs.tags }}
3740
labels: ${{ steps.meta.outputs.labels }}

.github/workflows/verify.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,17 @@ jobs:
3131

3232
- name: Build
3333
run: pnpm build
34+
docker:
35+
runs-on: ubuntu-latest
36+
steps:
37+
- name: Checkout
38+
uses: actions/checkout@v4
39+
40+
- name: Install
41+
uses: ./.github/actions/install
42+
43+
- name: Build package/playground
44+
uses: docker/build-push-action@v5
45+
with:
46+
context: .
47+
target: playground

Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ COPY . /usr/src/app
1111
WORKDIR /usr/src/app
1212
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile
1313
RUN pnpm build
14-
RUN pnpm deploy --filter=playground --prod /prod/playground
15-
RUN ls -al /prod/playground
14+
RUN pnpm deploy --filter=monorepo-typescript-playground --prod /prod/playground
1615

1716
FROM nginx:stable AS playground
1817

0 commit comments

Comments
 (0)