File tree Expand file tree Collapse file tree 2 files changed +5
-14
lines changed
Expand file tree Collapse file tree 2 files changed +5
-14
lines changed Original file line number Diff line number Diff line change 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
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"
Original file line number Diff line number Diff line change 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-
101FROM golang:bookworm
112
123WORKDIR /app
134COPY go.mod go.sum ./
145RUN go mod download
156
167COPY . .
17- COPY --from=webapp /app/dist ./webapp/_webapp/dist
188RUN go build -o dist/pd.exe cmd/main.go
199
2010EXPOSE 6060
You can’t perform that action at this time.
0 commit comments