| skipped 170 lines |
171 | 171 | | cloneCredential: !DefaultCredential {} |
172 | 172 | | condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL |
173 | 173 | | - !CommandStep |
174 | | - | name: 'command ' |
| 174 | + | name: sync |
175 | 175 | | image: alpine/git:1.0.7 |
176 | 176 | | commands: |
177 | 177 | | - git config --global --unset http.extraHeader |
| skipped 3 lines |
181 | 181 | | triggers: |
182 | 182 | | - !BranchUpdateTrigger |
183 | 183 | | branches: main |
| 184 | + | projects: onedev-server |
| 185 | + | retryCondition: never |
| 186 | + | maxRetries: 3 |
| 187 | + | retryDelay: 30 |
| 188 | + | cpuRequirement: 250m |
| 189 | + | memoryRequirement: 128m |
| 190 | + | timeout: 3600 |
| 191 | + | - name: Sync Stable (GitHub) |
| 192 | + | steps: |
| 193 | + | - !CheckoutStep |
| 194 | + | name: 'checkout ' |
| 195 | + | cloneCredential: !DefaultCredential {} |
| 196 | + | condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL |
| 197 | + | - !CommandStep |
| 198 | + | name: sync |
| 199 | + | image: alpine/git:1.0.7 |
| 200 | + | commands: |
| 201 | + | - git config --global --unset http.extraHeader |
| 202 | + | - git push -f https://robinshine:@secrets:github-token@@@github.com/theonedev/server |
| 203 | + | HEAD:stable |
| 204 | + | condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL |
| 205 | + | triggers: |
| 206 | + | - !BranchUpdateTrigger |
| 207 | + | branches: stable |
184 | 208 | | projects: onedev-server |
185 | 209 | | retryCondition: never |
186 | 210 | | maxRetries: 3 |
| skipped 5 lines |