Bump ubi9/ubi-minimal in the docker-images group (#690) #1730
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: CI build and test | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - 'main' | |
| - 'release/**' | |
| - branch-* | |
| pull_request: | |
| types: [opened, synchronize, reopened] | |
| jobs: | |
| maven-build-test: | |
| name: Maven Build and Test (Unit + Integration) | |
| if: github.event.pull_request.head.repo.fork == false || github.event_name != 'pull_request' | |
| uses: ./.github/workflows/maven-build.yml | |
| secrets: inherit | |
| docker-build-test: | |
| name: Docker build test on local registry | |
| needs: maven-build-test | |
| if: github.event.pull_request.head.repo.fork == false || github.event_name != 'pull_request' | |
| runs-on: ubuntu-latest | |
| services: | |
| registry: | |
| image: registry:2 | |
| ports: | |
| - 5000:5000 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v7 | |
| - name: Download build artifacts | |
| uses: actions/download-artifact@v8 | |
| with: | |
| name: build-artifacts-${{ github.sha }} | |
| path: build-output/ | |
| - name: Prepare JVM Tars | |
| run: scripts/graalvm-tarballs.sh download | |
| - name: Set up QEMU | |
| uses: docker/setup-qemu-action@v4 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v4 | |
| with: | |
| driver-opts: network=host | |
| - name: Build and push to local registry | |
| uses: docker/build-push-action@v7 | |
| with: | |
| context: . | |
| file: Dockerfile | |
| push: true | |
| tags: localhost:5000/name/app:latest | |
| - name: Inspect | |
| run: | | |
| docker buildx imagetools inspect localhost:5000/name/app:latest |