diff --git a/.github/workflows/maven-build.yml b/.github/workflows/maven-build.yml index 88a1666de..ffb33ea69 100644 --- a/.github/workflows/maven-build.yml +++ b/.github/workflows/maven-build.yml @@ -78,6 +78,12 @@ jobs: needs: [build, test] runs-on: ubuntu-latest steps: + + - uses: azure/login@v2 + name: Azure Login + with: + creds: '{"clientId":"${{ secrets.AZURE_CLIENT_ID }}","clientSecret":"${{ secrets.AZURE_CLIENT_SECRET }}","subscriptionId":"${{ secrets.AZURE_SUBSCRIPTION_ID }}","tenantId":"${{ secrets.AZURE_TENANT_ID }}"}' + - name: Docker Build and push run: | az acr login --name ${{ vars.ACR_NAME }} @@ -85,7 +91,7 @@ jobs: docker push ${{ vars.ACR_NAME }}.azurecr.io/grid-capstone:${{ github.sha }} deploy: - needs: [build, test, docker] + needs: [docker] runs-on: ubuntu-latest steps: - name: Checkout repository diff --git a/pom.xml b/pom.xml index 27fb9a6bd..dee76059f 100644 --- a/pom.xml +++ b/pom.xml @@ -156,6 +156,15 @@ + + org.apache.maven.plugins + maven-surefire-plugin + 3.1.2 + + ${project.build.directory}/surefire-reports + true + + org.apache.maven.plugins maven-enforcer-plugin @@ -296,6 +305,18 @@ + + + + org.apache.maven.plugins + maven-surefire-report-plugin + 3.1.2 + + + + + +