ci: deploy integrated preview on port 3000
Verify mini program and deploy preview / verify-deploy (push) Failing after 33s
Verify mini program and deploy preview / verify-deploy (push) Failing after 33s
This commit is contained in:
@@ -9,17 +9,17 @@ concurrency:
|
||||
jobs:
|
||||
verify-deploy:
|
||||
runs-on: ubuntu-latest
|
||||
container: { image: docker:27-cli }
|
||||
container: { image: "docker:27-cli" }
|
||||
timeout-minutes: 20
|
||||
env:
|
||||
SOURCE_SERVER: ${{ gitea.server_url }}
|
||||
SOURCE_REPOSITORY: ${{ gitea.repository }}
|
||||
SOURCE_REVISION: ${{ gitea.sha }}
|
||||
DEPLOY_PORT: ${{ vars.DEPLOY_PORT || '3001' }}
|
||||
DEPLOY_PORT: ${{ vars.DEPLOY_PORT || '3000' }}
|
||||
API_BASE_URL: ${{ vars.API_BASE_URL || 'http://47.76.92.159:18082' }}
|
||||
steps:
|
||||
- name: Fetch exact revision
|
||||
env: { SOURCE_TOKEN: "${{ secrets.GITEA_TOKEN }}" }
|
||||
env: { SOURCE_TOKEN: "${{ secrets.GITEA_TOKEN || gitea.token }}" }
|
||||
run: |
|
||||
set -eu
|
||||
apk add --no-cache python3 nodejs curl
|
||||
@@ -46,4 +46,3 @@ jobs:
|
||||
for i in 1 2 3 4 5 6; do curl -fsS "http://127.0.0.1:$DEPLOY_PORT/health" && exit 0; sleep 2; done
|
||||
docker logs pk-lab-xhs-preview
|
||||
exit 1
|
||||
|
||||
|
||||
@@ -9,5 +9,4 @@
|
||||
3. 用小红书开发者工具打开仓库根目录,绑定综合版 App ID。
|
||||
4. 后端配置同一 App ID/Secret 后重新部署。
|
||||
|
||||
CI 默认把公网预览持续部署到宿主机 `3001` 端口;配置变量 `DEPLOY_PORT` 可覆盖,`API_BASE_URL` 指向后端。预览使用后端显式开启的 `TEST_AUTH_ENABLED` 测试身份,正式小程序使用 `xhs.login()`。
|
||||
|
||||
CI 默认把公网预览持续部署到宿主机 `3000` 端口;配置变量 `DEPLOY_PORT` 可覆盖,`API_BASE_URL` 指向后端。预览使用后端显式开启的 `TEST_AUTH_ENABLED` 测试身份,正式小程序使用 `xhs.login()`。
|
||||
|
||||
Reference in New Issue
Block a user