新增 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
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:
20
.github/workflows/login-harbor.yaml
vendored
Normal file
20
.github/workflows/login-harbor.yaml
vendored
Normal 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 }}
|
Reference in New Issue
Block a user