Fix/update validation issues status label (#4478) #2511
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
| permissions: | |
| contents: read | |
| deployments: write | |
| name: Deploy | |
| on: | |
| push: | |
| branches: [main] | |
| concurrency: | |
| group: deploy | |
| cancel-in-progress: false | |
| jobs: | |
| detect_changes: | |
| uses: ./.github/workflows/job_detect_changes.yaml | |
| build_agent_image: | |
| needs: [detect_changes] | |
| if: needs.detect_changes.outputs.agent == 'true' | |
| uses: ./.github/workflows/job_build_agent_image.yaml | |
| secrets: | |
| GHCR_TOKEN: ${{ secrets.GHCR_TOKEN }} | |
| api_local_test: | |
| name: Test API | |
| uses: ./.github/workflows/job_test_api_local.yaml | |
| api_preview_deployment: | |
| needs: | |
| - api_local_test | |
| uses: ./.github/workflows/job_deploy_api_staging.yaml | |
| secrets: | |
| CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
| api_preview_test: | |
| needs: | |
| - api_preview_deployment | |
| uses: ./.github/workflows/job_test_api_staging.yaml | |
| with: | |
| UNKEY_BASE_URL: https://preview-api.unkey.dev | |
| secrets: | |
| DATABASE_HOST: ${{ secrets.DATABASE_HOST }} | |
| DATABASE_USERNAME: ${{ secrets.DATABASE_USERNAME }} | |
| DATABASE_PASSWORD: ${{ secrets.DATABASE_PASSWORD }} | |
| CLICKHOUSE_URL: ${{ secrets.CLICKHOUSE_URL }} | |
| api_canary_deployment: | |
| needs: | |
| - api_local_test | |
| - api_preview_test | |
| uses: ./.github/workflows/job_deploy_api_canary.yaml | |
| secrets: | |
| CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
| api_canary_test: | |
| needs: | |
| - api_canary_deployment | |
| uses: ./.github/workflows/job_test_api_canary.yaml | |
| with: | |
| UNKEY_BASE_URL: https://canary.unkey.dev | |
| secrets: | |
| DATABASE_HOST: ${{ secrets.DATABASE_HOST }} | |
| DATABASE_USERNAME: ${{ secrets.DATABASE_USERNAME }} | |
| DATABASE_PASSWORD: ${{ secrets.DATABASE_PASSWORD }} | |
| CLICKHOUSE_URL: ${{ secrets.CLICKHOUSE_URL }} | |
| api_production_deployment: | |
| needs: | |
| - api_canary_test | |
| uses: ./.github/workflows/job_deploy_api_production.yaml | |
| secrets: | |
| CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
| mintlify_deployment: | |
| runs-on: depot-ubuntu-24.04-4 | |
| needs: | |
| - detect_changes | |
| if: needs.detect_changes.outputs.docs == 'true' | |
| name: Deploy docs | |
| steps: | |
| - uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4 | |
| - name: Redeploy | |
| run: | | |
| curl --request POST \ | |
| --url https://api.mintlify.com/v1/project/update/648b83e0e20b94f5a3e41a70 \ | |
| --header 'Authorization: Bearer ${{secrets.MINTLIFY_API_KEY}}' | |
| logdrain_production_deployment: | |
| needs: | |
| - api_production_deployment | |
| - detect_changes | |
| if: needs.detect_changes.outputs.logdrain == 'true' | |
| uses: ./.github/workflows/job_deploy_logdrain_production.yaml | |
| secrets: | |
| CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
| workflows_deployment: | |
| needs: | |
| - api_local_test | |
| - detect_changes | |
| if: needs.detect_changes.outputs.workflows == 'true' | |
| uses: ./.github/workflows/job_deploy_workflows.yaml | |
| secrets: | |
| CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
| deploy-enterprise-worker: | |
| needs: api_production_deployment | |
| uses: ./.github/workflows/job_deploy_api_enterprise.yaml | |
| secrets: | |
| CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }} |