Skip to content

Commit

Permalink
chore(ci): configure spx-gui to use co-located spx-backend in Docker …
Browse files Browse the repository at this point in the history
…image (goplus#966)

Signed-off-by: Aofei Sheng <aofei@aofeisheng.com>
  • Loading branch information
aofei authored Sep 30, 2024
1 parent 25d59b7 commit d2b359d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/publish-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ jobs:
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Configure spx-gui to use co-located spx-backend
run: echo "VITE_API_BASE_URL=/api" > ./spx-gui/.env.staging.local
- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
Expand Down
3 changes: 3 additions & 0 deletions scripts/pr-preview.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ set -ex

echo "WORKSPACE: ${PWD}"

# Configure spx-gui to use co-located spx-backend
echo "VITE_API_BASE_URL=/api" > ./spx-gui/.env.staging.local

GOPLUS_REGISTRY_REPO=aslan-spock-register.qiniu.io/goplus
CONTAINER_IMAGE="${GOPLUS_REGISTRY_REPO}/goplus-builder-pr:${PULL_NUMBER}-${PULL_PULL_SHA:0:8}"
docker build \
Expand Down

0 comments on commit d2b359d

Please sign in to comment.