We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4e1f1ea commit 26a3770Copy full SHA for 26a3770
.github/workflows/sync-to-cnb.yml
@@ -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