新增 GitHub Actions 工作流以支持 Harbor 登录
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