This repository was archived by the owner on May 14, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +14
-23
lines changed Expand file tree Collapse file tree 5 files changed +14
-23
lines changed Original file line number Diff line number Diff line change 42
42
key : ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
43
43
restore-keys : |
44
44
${{ runner.os }}-m2-
45
+
45
46
- name : Login dockerhub
46
47
uses : docker/login-action@v3
47
48
with :
Original file line number Diff line number Diff line change 24
24
with :
25
25
username : ${{ secrets.DOCKERHUB_USERNAME }}
26
26
password : ${{ secrets.DOCKERHUB_TOKEN }}
27
+
27
28
- name : Run Security IT
28
29
run : |
29
30
mvn \
Original file line number Diff line number Diff line change @@ -3,47 +3,30 @@ name: CI PRs
3
3
on :
4
4
pull_request :
5
5
6
+ env :
7
+ MAVEN_THREADS : ' -T 1'
8
+
6
9
jobs :
7
10
build :
8
11
runs-on : ubuntu-latest
9
12
steps :
10
13
- uses : actions/checkout@v4
11
- # cache maven repo
12
14
- uses : jlumbroso/free-disk-space@main
13
15
with :
14
16
tool-cache : false
15
17
dotnet : false
16
18
docker-images : false
17
19
swap-storage : false
18
20
large-packages : false
19
- # jdk8
20
21
- uses : actions/setup-java@v3
21
22
with :
22
23
java-version : ' 8'
23
24
distribution : ' liberica'
24
- - uses : jvalkeal/setup-maven@v1
25
- with :
26
- maven-version : 3.8.8
27
- maven-mirror : ' https://dlcdn.apache.org/maven/maven-3/'
28
- - name : Login dockerhub
29
- uses : docker/login-action@v3
30
- with :
31
- username : ${{ secrets.DOCKERHUB_USERNAME }}
32
- password : ${{ secrets.DOCKERHUB_TOKEN }}
33
- # build
34
25
- name : Build
35
26
shell : bash
36
27
timeout-minutes : 75
37
28
run : |
38
- mvn -B -s .github/settings.xml clean install
39
- - name : Test Report
40
- uses : dorny/test-reporter@v1
41
- if : ${{ success() || failure() }}
42
- with :
43
- name : Unit Tests
44
- path : ' **/surefire-reports/*.xml'
45
- reporter : java-junit
46
- list-tests : failed
29
+ ./mvnw -B -s .github/settings.xml clean install
47
30
- name : Capture Test Results
48
31
if : failure()
49
32
uses : actions/upload-artifact@v3
Original file line number Diff line number Diff line change 10
10
runs-on : ubuntu-latest
11
11
strategy :
12
12
matrix :
13
- branch : [2.11.x]
14
- # branch: [main, 2.11.x] # resume when main is 3.x
13
+ branch : [main, 2.10.x]
15
14
steps :
16
15
- uses : benc-uk/workflow-dispatch@v1
17
16
with :
Original file line number Diff line number Diff line change 111
111
" $SCDIR /carvel-import-secret.sh" " scdfmetadata" " $NS "
112
112
" $SCDIR /carvel-import-secret.sh" " reg-creds-dockerhub" " $NS "
113
113
114
+ if [ " $SCDF_TYPE " = " pro" ]; then
115
+ " $SCDIR /carvel-import-secret.sh" " reg-creds-dev-registry" " $NS "
116
+ fi
117
+
118
+ " $SCDIR /carvel-import-secret.sh" " scdfmetadata" " $NS "
119
+ " $SCDIR /carvel-import-secret.sh" " reg-creds-dockerhub" " $NS "
120
+
114
121
if [ " $SCDF_TYPE " = " pro" ]; then
115
122
" $SCDIR /carvel-import-secret.sh" " reg-creds-dev-registry" " $NS "
116
123
fi
You can’t perform that action at this time.
0 commit comments