Skip to content

Commit

Permalink
ci(build): revert delete test pnpm build
Browse files Browse the repository at this point in the history
  • Loading branch information
topher-lo committed Dec 25, 2024
1 parent f09eef2 commit 86256ca
Showing 1 changed file with 63 additions and 0 deletions.
63 changes: 63 additions & 0 deletions .github/workflows/test-pnpm-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
name: Test pnpm build

on:
push:
branches:
- main
paths:
- "frontend/**"
- ".github/workflows/test-pnpm-build.yml"
pull_request:
branches:
- main
paths:
- "frontend/**"
- ".github/workflows/test-pnpm-build.yml"

jobs:
push-ui-to-ghcr-test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Extract Docker metadata
id: meta
uses: docker/metadata-action@v5
with:
images: |
ghcr.io/tracecathq/tracecat-ui
tags: |
type=ref,event=branch
type=ref,event=pr
type=semver,pattern=v{{version}}
type=semver,pattern=v{{major}}.{{minor}}
- name: Build and push Docker image
uses: docker/build-push-action@v6
env:
NEXT_PUBLIC_API_URL: http://localhost:8000
NEXT_PUBLIC_APP_ENV: production
NEXT_PUBLIC_APP_URL: http://localhost:3000
NEXT_SERVER_API_URL: http://localhost:8000
NODE_ENV: production
with:
context: frontend
file: frontend/Dockerfile.prod
build-args: |
NEXT_PUBLIC_API_URL=${{ env.NEXT_PUBLIC_API_URL }}
NEXT_PUBLIC_APP_ENV=${{ env.NEXT_PUBLIC_APP_ENV }}
NEXT_PUBLIC_APP_URL=${{ env.NEXT_PUBLIC_APP_URL }}
NEXT_SERVER_API_URL=${{ env.NEXT_SERVER_API_URL }}
NODE_ENV=${{ env.NODE_ENV }}
push: false
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max

0 comments on commit 86256ca

Please sign in to comment.