diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 962ba6f1..ecba6668 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -134,8 +134,9 @@ jobs: env: GH_TOKEN: ${{ github.token }} run: | - export GH_HOST="${GITHUB_SERVER_URL#https://}" - export GH_HOST="${GH_HOST#http://}" + # Gitea exposes an internal http://gitea:3000 URL to job containers; + # gh interprets GH_HOST as a public HTTPS hostname, not that service alias. + export GH_HOST=git.vezha.io tag="cuda-preview-${GITHUB_RUN_ID}-${GITHUB_RUN_ATTEMPT}" gh release create "$tag" "$RUNNER_TEMP/strata-hosted-cuda-package/"* \ --target "$GITHUB_SHA" --repo "$GITHUB_REPOSITORY" \ diff --git a/scripts/test-cuda-docker-builder.py b/scripts/test-cuda-docker-builder.py index d94b911b..81b6ac59 100644 --- a/scripts/test-cuda-docker-builder.py +++ b/scripts/test-cuda-docker-builder.py @@ -232,6 +232,8 @@ else: self.assertIn('runs-on: ubuntu-latest', job) self.assertIn('scripts/build-cuda-engine-in-docker.py', job) self.assertIn('gh release create', job) + self.assertIn('export GH_HOST=git.vezha.io', job) + self.assertNotIn('GH_HOST="${GITHUB_SERVER_URL', job) self.assertRegex(job, r'apt-get install -y .*\btime\b') self.assertIn('/usr/bin/time -v python3 scripts/build-linux-package.py', job) self.assertIn('--defer-engine-help-probe-to-runtime-image', job)