diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 2816b34f1..12710fdf3 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -24,7 +24,7 @@ jobs: uses: actions/checkout@v1 - name: Build with Maven - run: mvn --batch-mode -Pjacoco install + run: mvn --batch-mode -Pjacoco verify - name: Run SonarCloud analysis on server run: > @@ -36,24 +36,6 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} - - name: Build Docker image - Main - if: github.ref == 'refs/heads/main' - run: > - mvn --batch-mode deploy -DskipTests -Dmaven.install.skip -Dmaven.deploy.skip -Dpowsybl.docker.deploy - -Djib.httpTimeout=60000 - -Djib.to.image=docker.io/powsybl/network-store-server - -Djib.to.auth.username=powsyblci - -Djib.to.auth.password=${{ secrets.DOCKERHUB_TOKEN }} - - - name: Build Docker image - Tag - if: startsWith(github.ref, 'refs/tags/') - run: > - mvn --batch-mode deploy -DskipTests -Dmaven.install.skip -Dmaven.deploy.skip -Dpowsybl.docker.deploy - -Djib.httpTimeout=60000 - -Djib.to.image=docker.io/powsybl/network-store-server:${GITHUB_REF_NAME#v} - -Djib.to.auth.username=powsyblci - -Djib.to.auth.password=${{ secrets.DOCKERHUB_TOKEN }} - - name: Broadcast update event if: github.ref == 'refs/heads/main' uses: gridsuite/broadcast-event@main