fix: configure Gitea registry credential
Build and publish image / image (pull_request) Successful in 6s
Build and publish image / image (pull_request) Successful in 6s
This commit is contained in:
@@ -21,7 +21,7 @@ jobs:
|
||||
run: ./tests/check.sh
|
||||
- name: Log in to Gitea registry
|
||||
if: gitea.event_name != 'pull_request'
|
||||
run: echo "${{ secrets.GITEA_TOKEN }}" | docker login git.ipao.vip --username "${{ gitea.actor }}" --password-stdin
|
||||
run: echo "${{ secrets.REGISTRY_TOKEN }}" | docker login git.ipao.vip --username "${{ gitea.actor }}" --password-stdin
|
||||
- name: Build image
|
||||
env:
|
||||
PUSH: ${{ gitea.event_name != 'pull_request' }}
|
||||
|
||||
@@ -37,7 +37,7 @@ CDP 端口默认是 `9222`;不要直接暴露到公网。每个账号应使用
|
||||
|
||||
## 自动发布
|
||||
|
||||
- Gitea Workflow:推送 `git.ipao.vip/rogee/fingerprint-chromium:<chrome-version>`,使用内置 `GITEA_TOKEN`。
|
||||
- Gitea Workflow:推送 `git.ipao.vip/rogee/fingerprint-chromium:<chrome-version>`,使用仓库 secret `REGISTRY_TOKEN`。
|
||||
- GitHub Workflow:推送 `ghcr.io/rogeecn/fingerprint-chromium:<chrome-version>`,使用内置 `GITHUB_TOKEN`。
|
||||
|
||||
两个 Workflow 都会在 PR 中只构建验证,在 `main` 更新、每日定时任务或手动触发时构建并推送。仓库需要允许 Actions job token 写入 Packages。
|
||||
|
||||
Reference in New Issue
Block a user