File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,16 +14,16 @@ jobs:
1414 username : ${{secrets.DOCKER_USERNAME}}
1515 password : ${{secrets.DOCKER_PASSWORD}}
1616 - uses : actions/checkout@v3
17- - name : Set up Maven Central Repository
18- uses : actions/setup-java@v3
17+ - uses : actions/setup-java@v3
1918 with :
2019 java-version : ' 17'
21- distribution : ' adopt'
22- server-id : docker.io
23- server-username : DOCKER_USERNAME
24- server-password : DOCKER_PASSWORD
25- - name : Publish package
26- run : mvn --batch-mode -Prelease package dockerfile:push
27- env :
28- DOCKER_USERNAME : ${{secrets.DOCKER_USERNAME}}
29- DOCKER_TOKEN : ${{secrets.DOCKER_PASSWORD}}
20+ distribution : ' temurin'
21+ cache : ' maven'
22+ # The normal build already produces the image, tagged with the pom
23+ # version, as part of `package`; publishing is just a push.
24+ - name : Build the image
25+ run : mvn --batch-mode -DskipTests package
26+ - name : Push the image
27+ run : |
28+ VERSION=$(mvn -q help:evaluate -Dexpression=project.version -DforceStdout)
29+ docker push "protegeproject/webprotege-event-history-service:${VERSION}"
You can’t perform that action at this time.
0 commit comments