-
-
Notifications
You must be signed in to change notification settings - Fork 134
190 lines (187 loc) · 6.77 KB
/
sync-git.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
# commit mesage include [skip sync] to skip ci
on:
push:
tags:
- '*'
branches:
- "23.11"
workflow_dispatch:
name: Sync Git
jobs:
skip:
runs-on: ubuntu-latest
if: |
contains( github.ref, 'refs/tags/' )
|| contains( github.event.head_commit.message, '[sync git]')
|| github.event_name == 'workflow_dispatch'
steps:
- run: echo "sync continue !"
sync-git:
runs-on: ubuntu-latest
needs: skip
if: |
github.ref != 'refs/heads/master'
env:
PCIT_EMAIL: [email protected]
PCIT_GIT_TOKEN: ${{ secrets.PCIT_GIT_TOKEN }}
PCIT_USERNAME: khs1994
PCIT_MESSAGE: Sync from khs1994-docker/lnmp@${{github.sha}} by PCIT
PCIT_KEEP_HISTORY: "true"
steps:
- uses: actions/checkout@main
with:
fetch-depth: 2
- name: sync-acme.sh
uses: docker://pcit/pages
env:
PCIT_EMAIL: [email protected]
PCIT_GIT_TOKEN: ${{ secrets.PCIT_GIT_TOKEN }}
PCIT_GIT_URL: github.com/khs1994-docker/acme-docker
PCIT_KEEP_HISTORY: "true"
PCIT_LOCAL_DIR: dockerfile/acme.sh
PCIT_MESSAGE: Sync from khs1994-docker/lnmp@${{github.sha}} by PCIT
PCIT_TARGET_BRANCH: master
PCIT_USERNAME: khs1994
- name: sync-ci
uses: docker://pcit/pages
env:
PCIT_EMAIL: [email protected]
PCIT_GIT_TOKEN: ${{ secrets.PCIT_GIT_TOKEN }}
PCIT_GIT_URL: github.com/khs1994-docker/ci
PCIT_KEEP_HISTORY: "true"
PCIT_LOCAL_DIR: drone
PCIT_MESSAGE: Sync from khs1994-docker/lnmp@${{github.sha}} by PCIT
PCIT_TARGET_BRANCH: master
PCIT_USERNAME: khs1994
- name: sync-kubernetes
uses: docker://pcit/pages
env:
PCIT_EMAIL: [email protected]
PCIT_GIT_TOKEN: ${{ secrets.PCIT_GIT_TOKEN }}
PCIT_GIT_URL: github.com/khs1994-docker/lnmp-k8s
PCIT_KEEP_HISTORY: "true"
PCIT_LOCAL_DIR: kubernetes
PCIT_MESSAGE: Sync from khs1994-docker/lnmp@${{github.sha}} by PCIT
PCIT_TARGET_BRANCH: master
PCIT_USERNAME: khs1994
- name: sync-node-demo
uses: docker://pcit/pages
env:
PCIT_EMAIL: [email protected]
PCIT_GIT_TOKEN: ${{ secrets.PCIT_GIT_TOKEN }}
PCIT_GIT_URL: github.com/khs1994-docker/node-demo
PCIT_KEEP_HISTORY: "true"
PCIT_LOCAL_DIR: app/node-demo
PCIT_MESSAGE: Sync from khs1994-docker/lnmp@${{github.sha}} by PCIT
PCIT_TARGET_BRANCH: master
PCIT_USERNAME: khs1994
- name: sync-php-demo
uses: docker://pcit/pages
env:
PCIT_EMAIL: [email protected]
PCIT_GIT_TOKEN: ${{ secrets.PCIT_GIT_TOKEN }}
PCIT_GIT_URL: github.com/khs1994-docker/php-demo
PCIT_KEEP_HISTORY: "true"
PCIT_LOCAL_DIR: app/demo
PCIT_MESSAGE: Sync from khs1994-docker/lnmp@${{github.sha}} by PCIT
PCIT_TARGET_BRANCH: master
PCIT_USERNAME: khs1994
- name: sync-buildx
uses: docker://pcit/pages
env:
PCIT_EMAIL: [email protected]
PCIT_GIT_TOKEN: ${{ secrets.PCIT_GIT_TOKEN }}
PCIT_GIT_URL: github.com/docker-practice/buildx
PCIT_KEEP_HISTORY: "true"
PCIT_LOCAL_DIR: dockerfile/buildkit
PCIT_MESSAGE: commit by ci
PCIT_TARGET_BRANCH: master
PCIT_USERNAME: khs1994
- name: sync-laravel-demo
uses: docker://pcit/pages
env:
PCIT_EMAIL: [email protected]
PCIT_GIT_TOKEN: ${{ secrets.PCIT_GIT_TOKEN }}
PCIT_GIT_URL: github.com/khs1994-docker/laravel-demo
PCIT_KEEP_HISTORY: "true"
PCIT_LOCAL_DIR: app/laravel-demo
PCIT_MESSAGE: Sync from khs1994-docker/lnmp@${{github.sha}} by PCIT
PCIT_TARGET_BRANCH: master
PCIT_USERNAME: khs1994
- name: sync-kube-nginx
uses: docker://pcit/pages
env:
PCIT_EMAIL: [email protected]
PCIT_GIT_TOKEN: ${{ secrets.PCIT_GIT_TOKEN }}
PCIT_GIT_URL: github.com/khs1994-docker/kube-nginx
PCIT_KEEP_HISTORY: "true"
PCIT_LOCAL_DIR: kubernetes/kube-nginx
PCIT_MESSAGE: Sync from khs1994-docker/lnmp@${{github.sha}} by PCIT
PCIT_TARGET_BRANCH: master
PCIT_USERNAME: khs1994
- name: sync-k8s-ci-demo
uses: docker://pcit/pages
env:
PCIT_EMAIL: [email protected]
PCIT_GIT_TOKEN: ${{ secrets.PCIT_GIT_TOKEN }}
PCIT_GIT_URL: github.com/khs1994-docker/k8s-demo
PCIT_KEEP_HISTORY: "true"
PCIT_LOCAL_DIR: kubernetes/demo/ci
PCIT_MESSAGE: Sync from khs1994-docker/lnmp@${{github.sha}} by PCIT
PCIT_TARGET_BRANCH: master
PCIT_USERNAME: khs1994
- name: sync-docker-image-sync
uses: docker://pcit/pages
env:
PCIT_EMAIL: [email protected]
PCIT_GIT_TOKEN: ${{ secrets.PCIT_GIT_TOKEN }}
PCIT_GIT_URL: github.com/khs1994-docker/docker-image-sync
PCIT_KEEP_HISTORY: "true"
PCIT_LOCAL_DIR: dockerfile/sync
PCIT_MESSAGE: Sync from khs1994-docker/lnmp@${{github.sha}} by PCIT
PCIT_TARGET_BRANCH: master
PCIT_USERNAME: khs1994
- name: sync-nginx
uses: docker://pcit/pages
env:
PCIT_EMAIL: [email protected]
PCIT_GIT_TOKEN: ${{ secrets.PCIT_GIT_TOKEN }}
PCIT_GIT_URL: github.com/khs1994-docker/nginx
PCIT_KEEP_HISTORY: "true"
PCIT_LOCAL_DIR: dockerfile/nginx
PCIT_MESSAGE: Sync from khs1994-docker/lnmp@${{github.sha}} by PCIT
PCIT_TARGET_BRANCH: master
PCIT_USERNAME: khs1994
- name: sync-docker-proxy
uses: docker://pcit/pages
env:
# PCIT_EMAIL: [email protected]
# PCIT_GIT_TOKEN: ${{ secrets.PCIT_GIT_TOKEN }}
PCIT_GIT_URL: github.com/khs1994-docker/docker-proxy
# PCIT_KEEP_HISTORY: "true"
PCIT_LOCAL_DIR: dockerfile/docker-proxy
# PCIT_MESSAGE: Sync from khs1994-docker/lnmp@${{github.sha}} by PCIT
PCIT_TARGET_BRANCH: master
# PCIT_USERNAME: khs1994
- name: sync-s6
uses: docker://pcit/pages
env:
# PCIT_EMAIL: [email protected]
# PCIT_GIT_TOKEN: ${{ secrets.PCIT_GIT_TOKEN }}
PCIT_GIT_URL: github.com/khs1994-docker/s6
# PCIT_KEEP_HISTORY: "true"
PCIT_LOCAL_DIR: dockerfile/s6
# PCIT_MESSAGE: Sync from khs1994-docker/lnmp@${{github.sha}} by PCIT
PCIT_TARGET_BRANCH: master
# PCIT_USERNAME: khs1994
- name: sync-wsl2-kernel
uses: docker://pcit/pages
env:
# PCIT_EMAIL: [email protected]
# PCIT_GIT_TOKEN: ${{ secrets.PCIT_GIT_TOKEN }}
PCIT_GIT_URL: github.com/khs1994/WSL2-Linux-Kernel
# PCIT_KEEP_HISTORY: "true"
PCIT_LOCAL_DIR: wsl2/kernel
# PCIT_MESSAGE: Sync from khs1994-docker/lnmp@${{github.sha}} by PCIT
PCIT_TARGET_BRANCH: master
# PCIT_USERNAME: khs1994