fix: add PUBLIC_API_URL env var to all build steps

This commit is contained in:
2026-02-26 13:45:32 -06:00
parent f86ab35b32
commit bd5a54031e
2 changed files with 14 additions and 0 deletions
+10
View File
@@ -22,10 +22,16 @@ jobs:
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Checkout source code
uses: actions/checkout@v4
- name: Build and push the Docker image
uses: docker/build-push-action@v6
with:
context: .
push: true
build-args: |
PUBLIC_API_URL=https://opt-api.osdci.net
tags: |
ghcr.io/project-optima/ttscm-ui:latest
ghcr.io/project-optima/ttscm-ui:${{ github.event.release.tag_name }}
@@ -47,6 +53,8 @@ jobs:
- name: Build macOS distributables
run: bun run make:macos
env:
PUBLIC_API_URL: https://opt-api.osdci.net
- name: Upload macOS artifacts to release
uses: softprops/action-gh-release@v2
@@ -72,6 +80,8 @@ jobs:
- name: Build Windows distributables
run: bun run make -- --platform win32
env:
PUBLIC_API_URL: https://opt-api.osdci.net
- name: Upload Windows artifacts to release
uses: softprops/action-gh-release@v2
+4
View File
@@ -9,6 +9,10 @@ RUN bun install --frozen-lockfile
# Build the SvelteKit app with adapter-node
COPY . .
ARG PUBLIC_API_URL=https://opt-api.osdci.net
ENV PUBLIC_API_URL=$PUBLIC_API_URL
RUN bun run build:server
# Production image