Remove unused env var BUILD_NUMBER in CI #60
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: 'Continuous Integration' | |
| on: [ push, pull_request ] | |
| jobs: | |
| PublishImage: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out | |
| uses: actions/checkout@v3 | |
| - name: Set up JDK | |
| uses: actions/setup-java@v3 | |
| with: | |
| java-version: 11 | |
| distribution: temurin | |
| - name: Build docker image | |
| uses: gradle/gradle-build-action@v2.3.0 | |
| with: | |
| arguments: :buildDockerImage | |
| - name: Publish docker image | |
| if: ${{ startsWith(github.ref, 'refs/heads/main') }} | |
| uses: gradle/gradle-build-action@v2.3.0 | |
| env: | |
| DOCKER_USER: ${{ secrets.DOCKER_USER }} | |
| DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} | |
| with: | |
| arguments: :pushDockerImage |