fix: add PUBLIC_API_URL env var to all build steps
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user