Skip to content

Commit 26a3770

Browse files
feat: add sync to cnb action
1 parent 4e1f1ea commit 26a3770

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/sync-to-cnb.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Sync to CNB
2+
3+
on:
4+
push:
5+
branches: "main"
6+
7+
jobs:
8+
sync:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
with:
13+
fetch-depth: 0
14+
15+
- name: Sync to CNB Repository
16+
run: |
17+
docker run --rm \
18+
-v ${{ github.workspace }}:${{ github.workspace }} \
19+
-w ${{ github.workspace }} \
20+
-e PLUGIN_TARGET_URL="https://cnb.cool/1Panel-dev/runtime.git" \
21+
-e PLUGIN_AUTH_TYPE="https" \
22+
-e PLUGIN_USERNAME="cnb" \
23+
-e PLUGIN_PASSWORD=${{ secrets.CNB_PASSWORD }} \
24+
tencentcom/git-sync

0 commit comments

Comments
 (0)