We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 80694ee commit e3ab6f3Copy full SHA for e3ab6f3
.github/workflows/deploy.yml
@@ -20,8 +20,13 @@ jobs:
20
- uses: actions/checkout@v4
21
- uses: oven-sh/setup-bun@v1
22
23
+ - id: vars
24
+ run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
25
+
26
- run: bun install
27
- run: bun run build
28
+ env:
29
+ VITE_PUBLIC_GIT_SHA: ${{ steps.vars.outputs.sha_short }}
30
31
- uses: actions/upload-pages-artifact@v3
32
with:
Dockerfile
@@ -19,8 +19,8 @@ COPY --from=deps /app/node_modules ./node_modules
19
COPY . .
ENV NEXT_TELEMETRY_DISABLED 1
-ARG NEXT_PUBLIC_GIT_SHA
-ENV NEXT_PUBLIC_GIT_SHA $NEXT_PUBLIC_GIT_SHA
+ARG VITE_PUBLIC_GIT_SHA
+ENV VITE_PUBLIC_GIT_SHA $VITE_PUBLIC_GIT_SHA
RUN bun run build
0 commit comments