Skip to content

Commit 5bbb349

Browse files
authored
fix(build): add missing pdf-parse dep, add docker build in staging (#1213)
* fix(build): add missing pdf-parse dep * add docker build (no push) in staging
1 parent ea09fce commit 5bbb349

File tree

3 files changed

+11
-13
lines changed

3 files changed

+11
-13
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@ name: Build and Publish Docker Image
22

33
on:
44
push:
5-
branches: [main]
6-
tags: ['v*']
5+
branches: [main, staging]
76

87
jobs:
98
build-and-push:
@@ -56,7 +55,7 @@ jobs:
5655
uses: docker/setup-buildx-action@v3
5756

5857
- name: Log in to the Container registry
59-
if: github.event_name != 'pull_request'
58+
if: github.event_name != 'pull_request' && github.ref == 'refs/heads/main'
6059
uses: docker/login-action@v3
6160
with:
6261
registry: ghcr.io
@@ -70,10 +69,7 @@ jobs:
7069
images: ${{ matrix.image }}
7170
tags: |
7271
type=raw,value=latest-${{ matrix.arch }},enable=${{ github.ref == 'refs/heads/main' }}
73-
type=ref,event=pr,suffix=-${{ matrix.arch }}
74-
type=semver,pattern={{version}},suffix=-${{ matrix.arch }}
75-
type=semver,pattern={{major}}.{{minor}},suffix=-${{ matrix.arch }}
76-
type=semver,pattern={{major}}.{{minor}}.{{patch}},suffix=-${{ matrix.arch }}
72+
type=raw,value=staging-${{ github.sha }}-${{ matrix.arch }},enable=${{ github.ref == 'refs/heads/staging' }}
7773
type=sha,format=long,suffix=-${{ matrix.arch }}
7874
7975
- name: Build and push Docker image
@@ -82,7 +78,7 @@ jobs:
8278
context: .
8379
file: ${{ matrix.dockerfile }}
8480
platforms: ${{ matrix.platform }}
85-
push: ${{ github.event_name != 'pull_request' }}
81+
push: ${{ github.event_name != 'pull_request' && github.ref == 'refs/heads/main' }}
8682
tags: ${{ steps.meta.outputs.tags }}
8783
labels: ${{ steps.meta.outputs.labels }}
8884
cache-from: type=gha,scope=build-v3
@@ -93,7 +89,7 @@ jobs:
9389
create-manifests:
9490
runs-on: ubuntu-latest
9591
needs: build-and-push
96-
if: github.event_name != 'pull_request'
92+
if: github.event_name != 'pull_request' && github.ref == 'refs/heads/main'
9793
strategy:
9894
matrix:
9995
include:
@@ -119,10 +115,6 @@ jobs:
119115
images: ${{ matrix.image }}
120116
tags: |
121117
type=raw,value=latest,enable=${{ github.ref == 'refs/heads/main' }}
122-
type=ref,event=pr
123-
type=semver,pattern={{version}}
124-
type=semver,pattern={{major}}.{{minor}}
125-
type=semver,pattern={{major}}.{{minor}}.{{patch}}
126118
type=sha,format=long
127119
128120
- name: Create and push manifest

apps/sim/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@
107107
"officeparser": "^5.2.0",
108108
"openai": "^4.91.1",
109109
"papaparse": "5.5.3",
110+
"pdf-parse": "1.1.1",
110111
"postgres": "^3.4.5",
111112
"prismjs": "^1.30.0",
112113
"react": "19.1.0",

bun.lock

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)