Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add linyaps and gitcode #166

Merged
merged 1 commit into from
Sep 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions services/prow/config/jobs/images/git-sync/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
## See https://github.com/myml/git-sync
112 changes: 111 additions & 1 deletion services/prow/config/jobs/submits.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,112 @@ community-sync-to-gitlab: &community-sync-to-gitlab
name: gitlab-token-wurongjie
key: TOKEN

linyaps-sync-to-gitlab: &linyaps-sync-to-gitlab
name: sync-to-gitlab
always_run: true
labels:
app: sync-to-gitlab
spec:
nodeSelector:
kubernetes.io/arch: amd64
hostAliases:
- ip: 10.20.64.81
hostnames:
- github.com
- ip: 10.0.32.61
hostnames:
- gitlabwh.uniontech.com
containers:
- name: sync-to-gitlab
image: ghcr.cicd.getdeepin.org/myml/git-sync:main
imagePullPolicy: Always
command:
- sh
args:
- -c
- "/git-sync.sh https://github.com/OpenAtom-Linyaps/$REPO_NAME.git https://oauth2:[email protected]/wuhan/deepin/github-mirrors/openatom-linyaps-mirror/${REPO_NAME#.}.git"
env:
- name: SYNC_BRANCH_PATTERN
value: "master develop/* release/*"
- name: TOKEN
valueFrom:
secretKeyRef:
name: gitlab-token-wurongjie
key: TOKEN

linyaps-sync-to-gitee: &linyaps-sync-to-gitee
name: sync-to-gitee
always_run: true
labels:
app: sync-to-gitee
spec:
nodeSelector:
kubernetes.io/arch: amd64
hostAliases:
- ip: 10.20.64.81
hostnames:
- github.com
- ip: 10.0.32.61
hostnames:
- gitlabwh.uniontech.com
containers:
- name: sync-to-gitlab
image: ghcr.cicd.getdeepin.org/myml/git-sync:main
imagePullPolicy: Always
command:
- sh
args:
- -c
- "SYNC_MIRROR_CACHE=https://oauth2:[email protected]/wuhan/deepin/github-mirrors/openatom-linyaps-mirror/${REPO_NAME#.}.git /git-sync.sh https://github.com/OpenAtom-Linyaps/$REPO_NAME.git https://myml:[email protected]/deepin-community/$REPO_NAME"
env:
- name: SYNC_BRANCH_PATTERN
value: "master develop/* release/*"
- name: GITLAB_TOKEN
valueFrom:
secretKeyRef:
name: gitlab-token-wurongjie
key: TOKEN
- name: GITEE_TOKEN
valueFrom:
secretKeyRef:
name: gitee-token-wurongjie
key: TOKEN

community-sync-to-gitcode: &community-sync-to-gitcode
name: sync-to-gitcode
always_run: true
labels:
app: sync-to-gitcode
spec:
nodeSelector:
kubernetes.io/arch: amd64
hostAliases:
- ip: 10.20.64.81
hostnames:
- github.com
- ip: 10.0.32.61
hostnames:
- gitlabwh.uniontech.com
containers:
- name: sync-to-gitcode
image: ghcr.cicd.getdeepin.org/myml/git-sync:v0.0.2
imagePullPolicy: Always
command:
- sh
args:
- -c
- http --ignore-stdin POST "https://api.gitcode.com/api/v5/orgs/deepin-community/repos?access_token=$TOKEN" name=${REPO_NAME#.}; /git-sync.sh https://github.com/deepin-community/$REPO_NAME.git https://wrj97:[email protected]/deepin-community/${REPO_NAME#.}.git
env:
- name: SYNC_FORCE_PUSH
value: "true"
- name: SYNC_BRANCH_PATTERN
value: "master develop/* release/*"
- name: TOKEN
valueFrom:
secretKeyRef:
name: gitcode-token-wurongjie
key: TOKEN

obs-src-sync: &obs-src-sync
name: obs-src-sync
always_run: true
Expand Down Expand Up @@ -734,6 +840,7 @@ postsubmits:
deepin-community:
- <<: *obs-src-sync
- <<: *community-sync-to-gitlab
- <<: *community-sync-to-gitcode
peeweep-test:
- <<: *obs-src-sync
linuxdeepin/deepin-osconfig:
Expand All @@ -759,4 +866,7 @@ postsubmits:
- <<: *obs-src-sync
- <<: *linuxdeepin-sync-to-gitlab
deepin-community/GHC_packages:
- <<: *ghc-packages-obs-sync
- <<: *ghc-packages-obs-sync
OpenAtom-Linyaps:
- <<: *linyaps-sync-to-gitlab
- <<: *linyaps-sync-to-gitee
Loading