write git sha env variable into docker container

This commit is contained in:
2025-08-31 16:58:19 +02:00
parent 6189b80ff1
commit 2b489e83ba
2 changed files with 3 additions and 3 deletions

View File

@@ -18,8 +18,8 @@ jobs:
run: bun install run: bun install
- name: Build - name: Build
run: bun run build run: bun run build
- name: Write git hash into dist - name: Write GITHUB_SHA into dist
run: echo "export const GIT_HASH = '$(git rev-parse HEAD)';" > dist/git-hash.js run: echo "export const GITHUB_SHA = '$GITHUB_SHA';" > dist/git-hash.js
- name: Create Build Artifact - name: Create Build Artifact
uses: christopherhx/gitea-upload-artifact@v4 uses: christopherhx/gitea-upload-artifact@v4
with: with:

View File

@@ -16,7 +16,7 @@ http {
index index.html; index index.html;
location / { location / {
try_files $uri $uri/ /index.html; try_files $uri $uri/ /index.html /git-hash.js;
} }
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ { location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ {