add guardrails for undesired reconciliation #136
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: Build and Test Java 17 with Maven | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| build-and-test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: '17' | |
| distribution: 'adopt' | |
| - name: Unit Testing with Maven | |
| run: | | |
| mvn -B test --file ./resilience-bench/operator/pom.xml | |
| - name: Log in to the Container registry | |
| uses: docker/login-action@v3 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Build and push Docker image | |
| run: | | |
| mvn -B package -Dimage=ghcr.io/${{ github.repository }}/resiliencebench-operator:${{ github.sha }} --file ./resilience-bench/operator/pom.xml | |
| docker tag ghcr.io/${{ github.repository }}/resiliencebench-operator:${{ github.sha }} ghcr.io/${{ github.repository }}/resiliencebench-operator:latest | |
| docker push ghcr.io/${{ github.repository }}/resiliencebench-operator:${{ github.sha }} | |
| docker push ghcr.io/${{ github.repository }}/resiliencebench-operator:latest |