fix: Gitea Registry改用Actions token认证,确保packages权限
Deploy / Deploy Staging (push) Failing after 137h49m41s
CI/CD Pipeline / Frontend Lint (push) Failing after 137h49m49s
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 137h49m49s
Deploy / Staging E2E Tests (push) Failing after 1796h25m11s
Deploy / Deploy Production (push) Failing after 1796h25m15s
Deploy / Build Production Runtime Images (push) Failing after 1796h25m17s
Deploy / Production Browser E2E (push) Failing after 1796h56m38s
Deploy / Deploy Staging (push) Failing after 137h49m41s
CI/CD Pipeline / Frontend Lint (push) Failing after 137h49m49s
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 137h49m49s
Deploy / Staging E2E Tests (push) Failing after 1796h25m11s
Deploy / Deploy Production (push) Failing after 1796h25m15s
Deploy / Build Production Runtime Images (push) Failing after 1796h25m17s
Deploy / Production Browser E2E (push) Failing after 1796h56m38s
This commit is contained in:
@@ -65,15 +65,16 @@ jobs:
|
||||
- name: Build and push staging API/Worker images
|
||||
shell: bash
|
||||
env:
|
||||
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
||||
GITEA_TOKEN: ${{ github.token }}
|
||||
GITEA_ACTOR: ${{ github.actor }}
|
||||
run: |
|
||||
set -eu
|
||||
REGISTRY="172.30.18.198:5000"
|
||||
CACHE_REGISTRY="git.xiaoxiajianji.com/xiaoxia/xiaoxia-saas"
|
||||
CACHE_BRANCH="${GITHUB_REF_NAME//\//-}"
|
||||
|
||||
# 登录 Gitea Registry(用于构建缓存)
|
||||
printf '%s' "${GITEA_TOKEN}" | docker login git.xiaoxiajianji.com -u xiaoxia --password-stdin
|
||||
# 登录 Gitea Registry(用于构建缓存,用 Gitea Actions token,天然带当前 repo packages 权限)
|
||||
printf '%s' "${GITEA_TOKEN}" | docker login git.xiaoxiajianji.com -u "${GITEA_ACTOR}" --password-stdin
|
||||
|
||||
# 确保 buildx builder 可用
|
||||
docker buildx use default || docker buildx create --use --name default-builder 2>/dev/null || true
|
||||
|
||||
Reference in New Issue
Block a user