⚡ 新增容器构建工作流
This commit is contained in:
parent
bbb09300f6
commit
227eb3db0e
@ -49,28 +49,28 @@ jobs:
|
|||||||
tags: |
|
tags: |
|
||||||
reg.liteyuki.icu/comp/liteyuki-runner:latest
|
reg.liteyuki.icu/comp/liteyuki-runner:latest
|
||||||
|
|
||||||
- name: Build and push dind
|
# - name: Build and push dind
|
||||||
uses: docker/build-push-action@v5
|
# uses: docker/build-push-action@v5
|
||||||
with:
|
# with:
|
||||||
context: .
|
# context: .
|
||||||
file: ./Dockerfile
|
# file: ./Dockerfile
|
||||||
target: dind
|
# target: dind
|
||||||
platforms: |
|
# platforms: |
|
||||||
linux/amd64
|
# linux/amd64
|
||||||
# linux/arm64
|
## linux/arm64
|
||||||
push: true
|
# push: true
|
||||||
tags: |
|
# tags: |
|
||||||
reg.liteyuki.icu/comp/liteyuki-runner:latest-dind
|
# reg.liteyuki.icu/comp/liteyuki-runner:latest-dind
|
||||||
|
#
|
||||||
- name: Build and push dind-rootless
|
# - name: Build and push dind-rootless
|
||||||
uses: docker/build-push-action@v5
|
# uses: docker/build-push-action@v5
|
||||||
with:
|
# with:
|
||||||
context: .
|
# context: .
|
||||||
file: ./Dockerfile
|
# file: ./Dockerfile
|
||||||
target: dind-rootless
|
# target: dind-rootless
|
||||||
platforms: |
|
# platforms: |
|
||||||
linux/amd64
|
# linux/amd64
|
||||||
# linux/arm64
|
## linux/arm64
|
||||||
push: true
|
# push: true
|
||||||
tags: |
|
# tags: |
|
||||||
reg.liteyuki.icu/comp/liteyuki-runner:latest-dind-rootless
|
# reg.liteyuki.icu/comp/liteyuki-runner:latest-dind-rootless
|
||||||
|
@ -149,6 +149,7 @@ func (p *Poller) runTaskWithRecover(ctx context.Context, task *runnerv1.Task) {
|
|||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
// verify owner and repo
|
// verify owner and repo
|
||||||
|
fmt.Println("正在匹配仓库...", task.Context.Fields["repository"].GetStringValue(), p.cfg.Runner.AllowedRepos)
|
||||||
if matchAllowedRepo(task.Context.Fields["repository"].GetStringValue(), p.cfg.Runner.AllowedRepos) {
|
if matchAllowedRepo(task.Context.Fields["repository"].GetStringValue(), p.cfg.Runner.AllowedRepos) {
|
||||||
log.WithError(errors.New("allowed repos not match")).Error("allowed repos not match")
|
log.WithError(errors.New("allowed repos not match")).Error("allowed repos not match")
|
||||||
return
|
return
|
||||||
|
Loading…
x
Reference in New Issue
Block a user