| skipped 4 lines |
5 | 5 | | <io.onedev.server.buildspec.job.Job> |
6 | 6 | | <name>Release</name> |
7 | 7 | | <paramSpecs/> |
8 | | - | <image>1dev/build-environment:1.0</image> |
| 8 | + | <image>1dev/build-environment:1.1</image> |
9 | 9 | | <commands> |
10 | 10 | | <string>set -e</string> |
11 | 11 | | <string>docker login -u robinshen -p @secrets:dockerhub-password@</string> |
| skipped 2 lines |
14 | 14 | | <string>buildVersion=$(mvn org.apache.maven.plugins:maven-help-plugin:3.1.0:evaluate -Dexpression=project.version -q -DforceStdout)</string> |
15 | 15 | | <string>echo "##onedev[SetBuildVersion '$buildVersion']"</string> |
16 | 16 | | <string></string> |
17 | | - | <string>cp settings.xml /root/.m2/</string> |
18 | 17 | | <string>mvn deploy -Dmaven.deploy.password=@secrets:maven-deploy-password@</string> |
| 18 | + | <string></string> |
19 | 19 | | <string>docker build -t 1dev/k8s-helper-linux:$buildVersion -f Dockerfile.linux .</string> |
20 | 20 | | <string>docker push 1dev/k8s-helper-linux:$buildVersion</string> |
21 | 21 | | </commands> |
| skipped 6 lines |
28 | 28 | | <triggers> |
29 | 29 | | <io.onedev.server.buildspec.job.trigger.BranchUpdateTrigger> |
30 | 30 | | <params/> |
| 31 | + | <branches>master</branches> |
31 | 32 | | </io.onedev.server.buildspec.job.trigger.BranchUpdateTrigger> |
32 | 33 | | </triggers> |
33 | 34 | | <caches> |
| skipped 15 lines |
49 | 50 | | <paramSpecs/> |
50 | 51 | | <image>alpine/git:1.0.7</image> |
51 | 52 | | <commands> |
52 | | - | <string>git push https://robinshine:@secrets:github-password@\@github.com/theonedev/k8s-helper HEAD:master</string> |
| 53 | + | <string>git push -f https://robinshine:@secrets:github-password@\@github.com/theonedev/k8s-helper HEAD:master</string> |
53 | 54 | | </commands> |
54 | 55 | | <retrieveSource>true</retrieveSource> |
55 | 56 | | <submoduleCredentials/> |
| skipped 23 lines |