Skip to content

Commit

Permalink
revert to run only for main branch
Browse files Browse the repository at this point in the history
  • Loading branch information
rajadilipkolli committed Nov 15, 2024
1 parent b5c645c commit a2c3cf1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/config-server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ jobs:
- name: Build and analyze
run: ./mvnw clean verify

- if: ${{ github.ref != 'refs/heads/main' }}
- if: ${{ github.ref == 'refs/heads/main' }}
name: Build Image and push to docker
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
DOCKER_PASSCODE: ${{secrets.DOCKER_PASSCODE}}
DOC_USERNAME: ${{secrets.DOCKER_USERNAME}}
run: ./mvnw -Pnative spring-boot:build-image -Dorg.graalvm.nativeimage.debug-attach=true -Dspring-boot.build-image.publish=true -DCI_DOCKER_PASSWORD=${DOCKER_PASSCODE} -DCI_DOCKER_USERNAME=${DOC_USERNAME}
run: ./mvnw -Pnative spring-boot:build-image -Dspring-boot.build-image.publish=true -DCI_DOCKER_PASSWORD=${DOCKER_PASSCODE} -DCI_DOCKER_USERNAME=${DOC_USERNAME}

0 comments on commit a2c3cf1

Please sign in to comment.