File tree Expand file tree Collapse file tree 4 files changed +22
-18
lines changed Expand file tree Collapse file tree 4 files changed +22
-18
lines changed Original file line number Diff line number Diff line change 1
- # SPDX-FileCopyrightText: 2021 Alliander N.V.
1
+ # SPDX-FileCopyrightText: 2022 Alliander N.V.
2
2
#
3
3
# SPDX-License-Identifier: Apache-2.0
4
4
Original file line number Diff line number Diff line change 24
24
uses : actions/checkout@v3
25
25
with :
26
26
submodules : ' true'
27
- - name : Set up Docker Buildx
28
- id : buildx
29
- uses : docker/setup-buildx-action@v2
27
+
30
28
- name : Cache Docker Register
31
29
uses : actions/cache@v3
32
30
with :
39
37
key : ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
40
38
restore-keys : ${{ runner.os }}-m2
41
39
40
+ - name : Set up Docker Buildx
41
+ id : buildx
42
+ uses : docker/setup-buildx-action@v2
42
43
- name : Set up JDK 17
43
44
uses : actions/setup-java@v3
44
45
with :
Original file line number Diff line number Diff line change 19
19
uses : actions/checkout@v3
20
20
with :
21
21
submodules : ' true'
22
- - name : Set up Docker Buildx
23
- id : buildx
24
- uses : docker/setup-buildx-action@v2
25
- - name : Login to Docker Hub
26
- uses : docker/login-action@v2
27
- with :
28
- username : ${{ secrets.DOCKER_HUB_USERNAME }}
29
- password : ${{ secrets.DOCKER_HUB_TOKEN }}
22
+
30
23
- name : Cache Docker Register
31
24
uses : actions/cache@v3
32
25
with :
@@ -42,13 +35,22 @@ jobs:
42
35
- name : Extract tag name
43
36
id : extract_tagname
44
37
shell : bash
45
- # Extra the tagname form the git reference, value of GITHUB_REF will be something like refs/tags/<tag_name>.
38
+ # Extract the tag name from the git reference, value of GITHUB_REF will be something like refs/tags/<tag_name>.
46
39
run : echo "##[set-output name=tagname;]$(echo ${GITHUB_REF##*/})"
40
+
47
41
- name : Set up JDK 17
48
42
uses : actions/setup-java@v3
49
43
with :
50
44
distribution : ' zulu'
51
45
java-version : ' 17'
46
+ - name : Set up Docker Buildx
47
+ id : buildx
48
+ uses : docker/setup-buildx-action@v2
49
+ - name : Login to Docker Hub
50
+ uses : docker/login-action@v2
51
+ with :
52
+ username : ${{ secrets.DOCKER_HUB_USERNAME }}
53
+ password : ${{ secrets.DOCKER_HUB_TOKEN }}
52
54
53
55
- name : Create custom Maven Settings.xml
54
56
uses : whelk-io/maven-settings-xml-action@v20
Original file line number Diff line number Diff line change 30
30
with :
31
31
fetch-depth : 0
32
32
submodules : ' true'
33
- - name : Set up JDK 17
34
- uses : actions/setup-java@v3
35
- with :
36
- distribution : ' zulu'
37
- java-version : ' 17'
38
33
39
34
- name : Cache SonarCloud packages
40
35
uses : actions/cache@v3
49
44
key : ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
50
45
restore-keys : ${{ runner.os }}-m2
51
46
47
+ - name : Set up JDK 17
48
+ uses : actions/setup-java@v3
49
+ with :
50
+ distribution : ' zulu'
51
+ java-version : ' 17'
52
+
52
53
- name : Set Common Sonar Variables
53
54
id : sonar_env
54
55
run : |
You can’t perform that action at this time.
0 commit comments