Add opentelemetry #155
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: Container Image | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| env: | |
| REGISTRY: quay.io | |
| IMAGE_GROUP: streamshub | |
| jobs: | |
| container-image: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Set up JDK 21 | |
| uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0 | |
| with: | |
| java-version: '21' | |
| distribution: 'temurin' | |
| - name: Cache Maven packages | |
| uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5 | |
| with: | |
| path: ~/.m2 | |
| key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} | |
| restore-keys: ${{ runner.os }}-m2 | |
| - name: Build container images (PR) | |
| if: github.event_name == 'pull_request' | |
| run: | | |
| ./mvnw package -DskipTests \ | |
| -Dquarkus.container-image.build=true | |
| - name: Login to container registry | |
| if: github.event_name == 'push' | |
| uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4.1.0 | |
| with: | |
| registry: ${{ env.REGISTRY }} | |
| username: ${{ secrets.IMAGE_REPO_USERNAME }} | |
| password: ${{ secrets.IMAGE_REPO_PASSWORD }} | |
| - name: Build and push container images (main) | |
| if: github.ref == 'refs/heads/main' && github.event_name == 'push' | |
| run: | | |
| ./mvnw package -DskipTests \ | |
| -Dquarkus.container-image.build=true \ | |
| -Dquarkus.container-image.push=true \ | |
| -Dquarkus.container-image.registry=${{ env.REGISTRY }} \ | |
| -Dquarkus.container-image.group=${{ env.IMAGE_GROUP }} \ | |
| -Dquarkus.container-image.tag=latest |