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 3333 path : /tmp/.buildx-cache
3434 key : ${{ runner.os }}-buildx-${{ hashFiles('**/Dockerfile') }}
3535
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-
4336 - name : Set up JDK 17
4437 if : ${{ steps.release.outputs.release_created }}
4538 uses : actions/setup-java@v4
6457 with :
6558 output_file : custom_maven_settings.xml
6659 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 }}
7260 - name : Deploy with Maven to GitHub Packages and Docker Hub
7361 if : ${{ steps.release.outputs.release_created }}
7462 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