File tree Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Original file line number Diff line number Diff line change 33
33
path : /tmp/.buildx-cache
34
34
key : ${{ runner.os }}-buildx-${{ hashFiles('**/Dockerfile') }}
35
35
36
- - name : Extract tag name
37
- if : ${{ steps.release.outputs.release_created }}
38
- id : extract_tagname
39
- shell : bash
40
- # Extract the tag name from the git reference, value of GITHUB_REF will be something like refs/tags/<tag_name>.
41
- run : echo "##[set-output name=tagname;]$(echo ${GITHUB_REF##*/})"
42
-
43
36
- name : Set up JDK 17
44
37
if : ${{ steps.release.outputs.release_created }}
45
38
uses : actions/setup-java@v4
64
57
with :
65
58
output_file : custom_maven_settings.xml
66
59
servers : ' [{ "id": "github-packages-compas", "username": "OWNER", "password": "${{ secrets.GITHUB_TOKEN }}" }]'
67
- - name : Set version with Maven
68
- if : ${{ steps.release.outputs.release_created }}
69
- run : ./mvnw -B versions:set -DprocessAllModules=true -DnewVersion=${{ steps.extract_tagname.outputs.tagname }}
70
- env :
71
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
72
60
- name : Deploy with Maven to GitHub Packages and Docker Hub
73
61
if : ${{ steps.release.outputs.release_created }}
74
62
run : ./mvnw -B -s custom_maven_settings.xml -Pjvm-image,release clean deploy
You can’t perform that action at this time.
0 commit comments