env-based harbor login
This commit is contained in:
@@ -9,6 +9,11 @@ jobs:
|
||||
- name: 拉取代码
|
||||
uses: https://gitea.com/actions/checkout@v4
|
||||
|
||||
- name: 验钞(临时)
|
||||
env:
|
||||
HARBOR_PASS: ${{ secrets.HARBOR_PASS }}
|
||||
run: echo "Secret 里存的密码长度: ${#HARBOR_PASS}(正确应为 11)"
|
||||
|
||||
- name: 登录 Harbor
|
||||
run: |
|
||||
echo "${{ secrets.HARBOR_PASS }}" | docker login \
|
||||
|
||||
Reference in New Issue
Block a user