Fix/nginxpilot stability fixes #1
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: quaykeeper | |
| on: | |
| push: | |
| branches: [main] | |
| # the image bundles built @toolcase/base + web-components, so changes there | |
| # must rebuild quaykeeper too (build context is the repo root). | |
| paths: | |
| - 'quaykeeper/**' | |
| - 'base/**' | |
| - 'web-components/**' | |
| - 'package-lock.json' | |
| - '.dockerignore' | |
| - '.github/workflows/quaykeeper.yml' | |
| pull_request: | |
| paths: | |
| - 'quaykeeper/**' | |
| - 'base/**' | |
| - 'web-components/**' | |
| - 'package-lock.json' | |
| - '.dockerignore' | |
| - '.github/workflows/quaykeeper.yml' | |
| permissions: | |
| contents: read | |
| packages: write | |
| env: | |
| IMAGE_NAME: ghcr.io/${{ github.repository }}/quaykeeper | |
| jobs: | |
| docker: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: docker/setup-qemu-action@v3 | |
| - uses: docker/setup-buildx-action@v3 | |
| - name: Log in to GHCR | |
| if: github.event_name == 'push' | |
| uses: docker/login-action@v3 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Docker metadata | |
| id: meta | |
| uses: docker/metadata-action@v5 | |
| with: | |
| images: ${{ env.IMAGE_NAME }} | |
| tags: | | |
| type=raw,value=latest,enable={{is_default_branch}} | |
| type=sha,format=short | |
| - name: Build and push | |
| uses: docker/build-push-action@v6 | |
| with: | |
| # repo root: quaykeeper's @toolcase/* deps are file:../ workspace | |
| # siblings, so the build needs the whole monorepo (see quaykeeper/Dockerfile). | |
| context: . | |
| file: quaykeeper/Dockerfile | |
| platforms: linux/amd64,linux/arm64 | |
| push: ${{ github.event_name == 'push' }} | |
| tags: ${{ steps.meta.outputs.tags }} | |
| labels: ${{ steps.meta.outputs.labels }} | |
| cache-from: type=gha,scope=quaykeeper | |
| cache-to: type=gha,scope=quaykeeper,mode=max |