fix(workflows): 修复docker认证信息使用错误
Some checks failed
Build and Push Docker / build (push) Failing after 25s
Some checks failed
Build and Push Docker / build (push) Failing after 25s
- 将docker登录的用户名从固定字符串改为使用secret管理 - 将docker登录的密码从固定GITEA_TOKEN改为使用专用密码secret - 提高了CI/CD流程中docker登录步骤的安全性和灵活性
This commit is contained in:
parent
3ba9703744
commit
f1238a9b2e
@ -47,8 +47,8 @@ jobs:
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: ${{ env.REGISTRY }}
|
||||
username: movingsam
|
||||
password: ${{ secrets.GITEA_TOKEN }}
|
||||
username: ${{ secrets.USERNAME }}
|
||||
password: ${{ secrets.PASSWORD }}
|
||||
- name: Extract metadata
|
||||
id: meta
|
||||
uses: docker/metadata-action@v5
|
||||
|
||||
Loading…
Reference in New Issue
Block a user