Skip to content

Commit ce2346b

Browse files
committed
ci: add workflow to sync repository to CNB.cool
Add GitHub workflow to automatically sync changes to CNB.cool mirror repository on push events. Signed-off-by: longjin <[email protected]>
1 parent 03a93e9 commit ce2346b

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Sync to CNB.cool
2+
on: [push]
3+
4+
jobs:
5+
sync:
6+
if: github.repository == 'DragonOS-Community/gvisor'
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v3
10+
with:
11+
fetch-depth: 0
12+
13+
- name: Sync to CNB Repository
14+
run: |
15+
docker run --rm \
16+
-v ${{ github.workspace }}:${{ github.workspace }} \
17+
-w ${{ github.workspace }} \
18+
-e PLUGIN_TARGET_URL="https://cnb.cool/DragonOS-Community/gvisor.git" \
19+
-e PLUGIN_AUTH_TYPE="https" \
20+
-e PLUGIN_USERNAME="cnb" \
21+
-e PLUGIN_PASSWORD=${{ secrets.CNB_GIT_PASSWORD }} \
22+
-e PLUGIN_FORCE="true" \
23+
docker.cnb.cool/fslongjin/git-sync:250626

0 commit comments

Comments
 (0)