修复仓库匹配逻辑,添加大小写不敏感的比较
This commit is contained in:
parent
eceef92735
commit
f3622b3d44
@ -8,7 +8,7 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
release-image:
|
release-image:
|
||||||
runs-on: ubuntu-latest
|
runs-on: liteyukios-latest
|
||||||
container:
|
container:
|
||||||
image: catthehacker/ubuntu:act-latest
|
image: catthehacker/ubuntu:act-latest
|
||||||
env:
|
env:
|
||||||
@ -44,33 +44,33 @@ jobs:
|
|||||||
target: basic
|
target: basic
|
||||||
platforms: |
|
platforms: |
|
||||||
linux/amd64
|
linux/amd64
|
||||||
# linux/arm64
|
linux/arm64
|
||||||
push: true
|
push: true
|
||||||
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
|
||||||
|
@ -267,8 +267,8 @@ func matchAllowedRepo(targetRepo string, allowedRepos []string) bool {
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
allowedOwner, allowedRepoName := parts[0], parts[1]
|
allowedOwner, allowedRepoName := parts[0], parts[1]
|
||||||
if (allowedOwner == "*" || allowedOwner == targetOwner) &&
|
if (allowedOwner == "*" || strings.ToLower(allowedOwner) == strings.ToLower(targetOwner)) &&
|
||||||
(allowedRepoName == "*" || allowedRepoName == targetRepoName) {
|
(allowedRepoName == "*" || strings.ToLower(allowedRepoName) == strings.ToLower(targetRepoName)) {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user