Skip to content

Commit 932735e

Browse files
fix: docker versioning (#472)
* Update vite.config.ts * Update inject_version.py * Update build-frontend.yml
1 parent e911154 commit 932735e

3 files changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/build-frontend.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
runs-on: ${{ matrix.os }}
2020
strategy:
2121
matrix:
22-
os: [ubuntu-latest, windows-latest, macos-latest]
22+
os: [ubuntu-latest,ubuntu-latest-arm, windows-latest, macos-latest, windows-latest-arm]
2323
node-version: [latest]
2424

2525
defaults:

src/frontend/scripts/inject_version.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,5 @@ def git(cmd: str):
4545
with open(out_path, "w") as f:
4646
json.dump(build_data, f, indent=2)
4747

48+
print(f"Build info JSON created at: {out_path}")
4849
print(f"Injected version: {version}, commit: {commit}")

src/frontend/vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import fs from 'node:fs';
55
import path from 'node:path';
66
import { defineConfig } from 'vitest/config';
77

8-
const buildInfoPath = path.resolve('src/frontend/build-info.json');
8+
const buildInfoPath = path.resolve('./build-info.json');
99
let buildInfo = { version: 'v0.0.0', commit: 'unknown' };
1010

1111
if (fs.existsSync(buildInfoPath)) {

0 commit comments

Comments
 (0)