K8SPG-879 patroni version check pod and container should align the resources for k8s version 1.34 #3846
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: Scan docker | |
| on: [pull_request] | |
| env: | |
| # Use docker.io for Docker Hub if empty | |
| REGISTRY: docker.io | |
| # github.repository as <account>/<repo> | |
| IMAGE_NAME: perconalab/percona-postgresql-operator | |
| jobs: | |
| build: | |
| name: Build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v5 | |
| - name: Set up QEMU | |
| uses: docker/setup-qemu-action@v3 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Build an image from Dockerfile (linux/arm64) | |
| run: | | |
| export IMAGE=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.sha }}-arm64 | |
| export DOCKER_PUSH=0 | |
| export DOCKER_SQUASH=0 | |
| export DOCKER_DEFAULT_PLATFORM='linux/arm64' | |
| make build-docker-image | |
| - name: Run Trivy vulnerability scanner image (linux/arm64) | |
| uses: aquasecurity/[email protected] | |
| with: | |
| image-ref: '${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.sha }}-arm64' | |
| format: 'table' | |
| exit-code: '1' | |
| ignore-unfixed: true | |
| vuln-type: 'os,library' | |
| severity: 'CRITICAL,HIGH' | |
| version: 'v0.57.1' | |
| - name: Build an image from Dockerfile (linux/amd64) | |
| run: | | |
| export IMAGE=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.sha }}-amd64 | |
| export DOCKER_PUSH=0 | |
| export DOCKER_SQUASH=0 | |
| export DOCKER_DEFAULT_PLATFORM='linux/amd64' | |
| make build-docker-image | |
| - name: Run Trivy vulnerability scanner image (linux/amd64) | |
| uses: aquasecurity/[email protected] | |
| with: | |
| image-ref: '${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.sha }}-amd64' | |
| format: 'table' | |
| exit-code: '1' | |
| ignore-unfixed: true | |
| vuln-type: 'os,library' | |
| severity: 'CRITICAL,HIGH' | |
| version: 'v0.57.1' |