1 | | - | version: 6 |
| 1 | + | version: 13 |
2 | 2 | | jobs: |
3 | 3 | | - name: Release |
4 | 4 | | steps: |
5 | 5 | | - !CheckoutStep |
6 | 6 | | name: checkout |
7 | 7 | | cloneCredential: !DefaultCredential {} |
| 8 | + | withLfs: false |
| 9 | + | withSubmodules: true |
8 | 10 | | condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL |
9 | 11 | | - !CommandStep |
10 | 12 | | name: detect build version |
| skipped 4 lines |
15 | 17 | | dependencies)..." |
16 | 18 | | - echo $(mvn org.apache.maven.plugins:maven-help-plugin:3.2.0:evaluate -Dexpression=project.version |
17 | 19 | | -q -DforceStdout) > buildVersion |
| 20 | + | useTTY: false |
18 | 21 | | condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL |
19 | 22 | | - !SetBuildVersionStep |
20 | 23 | | name: set build version |
| skipped 10 lines |
31 | 34 | | - '' |
32 | 35 | | - docker build -t 1dev/k8s-helper-linux:@build_version@ -f Dockerfile.linux . |
33 | 36 | | - docker push 1dev/k8s-helper-linux:@build_version@ |
| 37 | + | useTTY: false |
34 | 38 | | condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL |
35 | 39 | | - !CreateTagStep |
36 | 40 | | name: 'create tag ' |
| skipped 5 lines |
42 | 46 | | retryCondition: never |
43 | 47 | | maxRetries: 3 |
44 | 48 | | retryDelay: 30 |
45 | | - | cpuRequirement: 250m |
46 | | - | memoryRequirement: 128m |
| 49 | + | cpuRequirement: 250 |
| 50 | + | memoryRequirement: 128 |
47 | 51 | | caches: |
48 | 52 | | - key: maven-cache |
49 | 53 | | path: /root/.m2/repository |
| skipped 3 lines |
53 | 57 | | - !CheckoutStep |
54 | 58 | | name: checkout |
55 | 59 | | cloneCredential: !DefaultCredential {} |
| 60 | + | withLfs: false |
| 61 | + | withSubmodules: true |
56 | 62 | | condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL |
57 | 63 | | - !CommandStep |
58 | 64 | | name: sync |
| skipped 2 lines |
61 | 67 | | - git config --global --unset http.extraHeader |
62 | 68 | | - git push -f https://robinshine:@secrets:github-token@@@github.com/theonedev/k8s-helper |
63 | 69 | | HEAD:main |
| 70 | + | useTTY: false |
64 | 71 | | condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL |
65 | 72 | | triggers: |
66 | 73 | | - !BranchUpdateTrigger |
67 | 74 | | branches: main |
| 75 | + | projects: onedev/k8s-helper |
68 | 76 | | retryCondition: never |
69 | 77 | | maxRetries: 3 |
70 | 78 | | retryDelay: 30 |
71 | | - | cpuRequirement: 250m |
72 | | - | memoryRequirement: 128m |
| 79 | + | cpuRequirement: 250 |
| 80 | + | memoryRequirement: 128 |
73 | 81 | | timeout: 3600 |
74 | 82 | | |