Skip to content

Commit e3ab6f3

Browse files
committed
fix version commit sha
1 parent 80694ee commit e3ab6f3

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.github/workflows/deploy.yml

+5
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,13 @@ jobs:
2020
- uses: actions/checkout@v4
2121
- uses: oven-sh/setup-bun@v1
2222

23+
- id: vars
24+
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
25+
2326
- run: bun install
2427
- run: bun run build
28+
env:
29+
VITE_PUBLIC_GIT_SHA: ${{ steps.vars.outputs.sha_short }}
2530

2631
- uses: actions/upload-pages-artifact@v3
2732
with:

Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ COPY --from=deps /app/node_modules ./node_modules
1919
COPY . .
2020

2121
ENV NEXT_TELEMETRY_DISABLED 1
22-
ARG NEXT_PUBLIC_GIT_SHA
23-
ENV NEXT_PUBLIC_GIT_SHA $NEXT_PUBLIC_GIT_SHA
22+
ARG VITE_PUBLIC_GIT_SHA
23+
ENV VITE_PUBLIC_GIT_SHA $VITE_PUBLIC_GIT_SHA
2424

2525
RUN bun run build
2626

0 commit comments

Comments
 (0)