新增 GitHub Actions 工作流以支持 Harbor 登录
All checks were successful
/ job2-harbor_username (push) Successful in 6s
/ job1-harbor-bot (push) Successful in 6s
/ go-hashfiles (push) Successful in 24s
/ hashFiles (push) Successful in 2s
/ job1 (push) Successful in 2s
/ job2 (push) Successful in 2s
/ job3 (push) Has been skipped

This commit is contained in:
严浩
2025-03-06 13:06:37 +08:00
parent 02006e6ca7
commit 3c5cd8acd0

20
.github/workflows/login-harbor.yaml vendored Normal file
View File

@ -0,0 +1,20 @@
on:
push:
workflow_dispatch:
jobs:
job1-harbor-bot:
runs-on: ubuntu-arm64
steps:
- uses: docker/login-action@v3
with:
registry: harbor.oo1.dev
username: robot$harbor-bot
password: ${{ secrets.HARBOR_ROBOT_TOKEN }}
job2-harbor_username:
runs-on: ubuntu-arm64
steps:
- uses: docker/login-action@v3
with:
registry: harbor.oo1.dev
username: harbor_username
password: ${{ secrets.HARBOR_PASSWORD }}