devops: upgrade action-maven-publish to v2
@@ -53,14 +53,19 @@ jobs:
java-version: 1.8
- name: Build with Maven CLI
run: mvn -T 2 clean install -DskipTests
+
+ ## Deploying in Maven repository
- name: Deploy to Maven Central respository
- uses: samuelmeuli/action-maven-publish@v1
+ uses: samuelmeuli/action-maven-publish@v2
with:
nexus_username: ${{ secrets.MAVEN_NEXUS_USER }}
nexus_password: ${{ secrets.MAVEN_NEXUS_PASSWORD }}
gpg_private_key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
gpg_passphrase: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
+ server_id: ossrh
maven_args: -DskipTests
+
+ ## Deploying to DockerHub
- name: Login to dockerhub
run: docker login -u ${{ secrets.DOCKER_HUB_USER }} -p ${{ secrets.DOCKER_HUB_PASSWORD }}
- name: Build and publish Docker images to DockerHub
