File tree Expand file tree Collapse file tree 1 file changed +55
-0
lines changed
Expand file tree Collapse file tree 1 file changed +55
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Spring Cloud Vault CI Job
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+ - 4.3.x
8+ - 4.2.x
9+
10+ # Scheduled builds run daily at midnight UTC
11+ schedule :
12+ - cron : ' 0 0 * * *'
13+
14+ # Manual trigger with optional branch override
15+ workflow_dispatch :
16+ inputs :
17+ branches :
18+ description : " Which branch should be built (can be a comma-separated list of branches)"
19+ required : true
20+ default : ' 4.3.x'
21+ type : string
22+
23+ jobs :
24+ deploy :
25+ uses : spring-cloud/spring-cloud-github-actions/.github/workflows/deploy.yml@main
26+ with :
27+ branches : ${{ inputs.branches }}
28+ custom_build_command : |
29+ export MAVEN_OPTS="-Xms256M -Xmx1024M -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Dhttps.protocols=TLSv1.2"
30+ #!/bin/bash
31+ echo "Kill Vault"
32+ pkill vault && echo "Vault killed" || echo "No Vault process was running"
33+
34+ echo "Install Vault"
35+ ./src/test/bash/create_certificates.sh
36+ ./src/test/bash/install_vault.sh
37+
38+ echo "Run Vault"
39+ ./src/test/bash/local_run_vault.sh &
40+ echo "Vault Running"
41+
42+ trap "{ pkill vault && echo 'Vault killed' || echo 'No Vault process was running'; }" EXIT
43+ if [[ "$SHOULD_DEPLOY" == "true" ]]; then
44+ ./mvnw clean deploy -Pdocs,deploy,spring -B -U
45+ else
46+ echo "Will not deploy artifacts"
47+ ./mvnw clean install -Pspring -B -U
48+ fi
49+ secrets :
50+ ARTIFACTORY_USERNAME : ${{ secrets.ARTIFACTORY_USERNAME }}
51+ ARTIFACTORY_PASSWORD : ${{ secrets.ARTIFACTORY_PASSWORD }}
52+ COMMERCIAL_ARTIFACTORY_USERNAME : ${{ secrets.COMMERCIAL_ARTIFACTORY_USERNAME }}
53+ COMMERCIAL_ARTIFACTORY_PASSWORD : ${{ secrets.COMMERCIAL_ARTIFACTORY_PASSWORD }}
54+ DOCKERHUB_USERNAME : ${{ secrets.DOCKERHUB_USERNAME }}
55+ DOCKERHUB_TOKEN : ${{ secrets.DOCKERHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments