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
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
registry: ${{ env.REGISTRY }}
|
registry: ${{ env.REGISTRY }}
|
||||||
username: movingsam
|
username: ${{ secrets.USERNAME }}
|
||||||
password: ${{ secrets.GITEA_TOKEN }}
|
password: ${{ secrets.PASSWORD }}
|
||||||
- name: Extract metadata
|
- name: Extract metadata
|
||||||
id: meta
|
id: meta
|
||||||
uses: docker/metadata-action@v5
|
uses: docker/metadata-action@v5
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user