Skip to content

Commit 2cecf8f

Browse files
committed
fix: skip building frontend
1 parent 76338e5 commit 2cecf8f

File tree

2 files changed

+5
-14
lines changed

2 files changed

+5
-14
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ jobs:
4646
refresh_token: ${{ secrets.CHROME_EXT_REFRESH_TOKEN }}
4747
extension_id: 'dfkedikhakpapbfcnbpmfhpklndgiaog'
4848
zip_file: 'dist.zip'
49-
build-and-push:
49+
50+
build-backend-and-push:
5051
runs-on: ubuntu-latest
5152
permissions:
5253
contents: read
@@ -79,7 +80,7 @@ jobs:
7980
echo "PAPERDEBUGGER_IMAGE=ghcr.io/paperdebugger/sharelatex-paperdebugger:${IMAGE_TAG}" >> $GITHUB_OUTPUT
8081
8182
deploy:
82-
needs: build-and-push
83+
needs: build-backend-and-push
8384
runs-on: ubuntu-latest
8485
permissions:
8586
contents: write
@@ -98,12 +99,12 @@ jobs:
9899
GHCR_DOCKER_CONFIG: ${{ secrets.GHCR_DOCKER_CONFIG_PRD }}
99100
CLOUDFLARE_TUNNEL_TOKEN: ${{ secrets.CLOUDFLARE_TUNNEL_TOKEN_PRD }}
100101
run: |
101-
export PAPERDEBUGGER_IMAGE=${{ needs.build-and-push.outputs.PAPERDEBUGGER_IMAGE }}
102+
export PAPERDEBUGGER_IMAGE=${{ needs.build-backend-and-push.outputs.PAPERDEBUGGER_IMAGE }}
102103
mkdir -p ../deploy/prd
103104
./hack/prd.sh > ../deploy/prd/paperdebugger.yaml
104105
- name: Push changes to deploy repo
105106
run: |
106-
export IMAGE_TAG=${{ needs.build-and-push.outputs.IMAGE_TAG }}
107+
export IMAGE_TAG=${{ needs.build-backend-and-push.outputs.IMAGE_TAG }}
107108
cd ../deploy
108109
git config --global user.name "github-actions[bot]"
109110
git config --global user.email "github-actions[bot]@users.noreply.github.com"

Dockerfile

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,10 @@
1-
FROM node:lts-bookworm AS webapp
2-
3-
WORKDIR /app
4-
COPY webapp/_webapp/package.json webapp/_webapp/package-lock.json ./
5-
RUN npm install
6-
7-
COPY webapp/_webapp/ .
8-
RUN npm run build
9-
101
FROM golang:bookworm
112

123
WORKDIR /app
134
COPY go.mod go.sum ./
145
RUN go mod download
156

167
COPY . .
17-
COPY --from=webapp /app/dist ./webapp/_webapp/dist
188
RUN go build -o dist/pd.exe cmd/main.go
199

2010
EXPOSE 6060

0 commit comments

Comments
 (0)