feat(kuma-config): declarative public status pages #50
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: Deploy to dev | |
| on: | |
| pull_request: | |
| types: [ready_for_review, synchronize] | |
| paths: | |
| - '**/Dockerfile' | |
| - .github/workflows/cd-deploy-to-dev.yml | |
| - .github/workflows/sub-cloudrun-deploy.yml | |
| concurrency: | |
| # Ensures that only one workflow task will run at a time. Previous builds, if | |
| # already in process, will get cancelled. Only the latest commit will be allowed | |
| # to run, cancelling any workflows in between | |
| group: ${{ github.workflow }}-${{ github.job }}-${{ github.head_ref || github.run_id }} | |
| cancel-in-progress: true | |
| permissions: | |
| actions: read | |
| attestations: read | |
| checks: read | |
| contents: read | |
| deployments: read | |
| id-token: write | |
| issues: read | |
| discussions: read | |
| packages: read | |
| pages: read | |
| pull-requests: read | |
| repository-projects: read | |
| security-events: read | |
| statuses: read | |
| jobs: | |
| build: | |
| uses: ./.github/workflows/sub-build-docker-image.yml | |
| if: ${{ !github.event.pull_request.draft }} | |
| with: | |
| environment: dev | |
| dockerfile_path: ./docker/Dockerfile | |
| dockerfile_target: runner | |
| app_name: ${{ vars.APP_NAME }} | |
| registry: ${{ vars.GAR_BASE }} | |
| secrets: inherit | |
| deploy: | |
| needs: [build] | |
| uses: ./.github/workflows/sub-cloudrun-deploy.yml | |
| with: | |
| environment: dev | |
| project_id: ${{ vars.GCP_PROJECT }} | |
| region: ${{ vars.GCP_REGION }} | |
| app_name: ${{ vars.APP_NAME }} | |
| registry: ${{ vars.GAR_BASE }} | |
| image_digest: ${{ needs.build.outputs.image_digest }} | |
| min_instances: '0' | |
| # Pinned to 1: Kuma is stateful (one monitor loop per instance); >1 would | |
| # autoscale into duplicate-notification territory. | |
| max_instances: '1' | |
| cpu: '1' | |
| memory: 1Gi | |
| secrets: inherit |