Skip to content

Commit

Permalink
fix version commit sha
Browse files Browse the repository at this point in the history
  • Loading branch information
incognitojam committed Jan 1, 2025
1 parent f977ac8 commit 0410c61
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,13 @@ jobs:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v1

- id: vars
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT

- run: bun install
- run: bun run build
env:
VITE_PUBLIC_GIT_SHA: ${{ steps.vars.outputs.sha_short }}

- uses: actions/upload-pages-artifact@v3
with:
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ COPY --from=deps /app/node_modules ./node_modules
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

Expand Down

0 comments on commit 0410c61

Please sign in to comment.