Skip to content

Commit

Permalink
Auto deploy the default branch to moda (#53801)
Browse files Browse the repository at this point in the history
  • Loading branch information
rachmari authored Jan 7, 2025
1 parent 9a9cdbb commit 20d2c1d
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 7 deletions.
19 changes: 17 additions & 2 deletions .github/branch_protection_settings/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,10 @@
"workflows",
"lint-code",
"secret-scanning",
"pagelist"
"pagelist",
"docs-internal-docker-image / docs-internal-docker-image",
"docs-internal-docker-security / docs-internal-docker-security",
"docs-internal-moda-config-bundle / docs-internal-moda-config-bundle"
],
"contexts_url": "https://api.github.com/repos/github/docs-internal/branches/main/protection/required_status_checks/contexts",
"checks": [
Expand Down Expand Up @@ -85,7 +88,19 @@
{ "context": "workflows", "app_id": 15368 },
{ "context": "lint-code", "app_id": 15368 },
{ "context": "secret-scanning", "app_id": 15368 },
{ "context": "pagelist", "app_id": 15368 }
{ "context": "pagelist", "app_id": 15368 },
{
"context": "docs-internal-docker-image / docs-internal-docker-image",
"app_id": 15368
},
{
"context": "docs-internal-docker-security / docs-internal-docker-security",
"app_id": 15368
},
{
"context": "docs-internal-moda-config-bundle / docs-internal-moda-config-bundle",
"app_id": 15368
}
]
},
"restrictions": {
Expand Down
33 changes: 28 additions & 5 deletions config/moda/deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,36 @@
required_builds:
- docs-internal-moda-config-bundle / docs-internal-moda-config-bundle
- docs-internal-docker-image / docs-internal-docker-image
- docs-internal-docker-security / docs-internal-docker-security
# Deploy configuration reference: https://thehub.github.com/epd/engineering/products-and-services/internal/moda/reference/deployment-yaml/

environments:
- name: production
auto_deploy: true
require_pipeline: true
cluster_selector:
profile: general
region: iad

required_builds:
- docs-internal-moda-config-bundle / docs-internal-moda-config-bundle
- docs-internal-docker-image / docs-internal-docker-image
- docs-internal-docker-security / docs-internal-docker-security

# Make the pipeline start automatically when a PR is enqueued
auto_start_pipeline: production_rollout

pipelines:
production_rollout:
thread_notifications: true
notify_users_via_dm: false
timeout: 1200
stages:
- name: full_production
kind: deployment
start_message: We are now going to deploy {{app}}/{{ref}}! Please pause or cancel the pipeline after the deploy if you want more time before auto-merging your pull request(s).
config:
environment: production
timeout: 1200
# gates:
# - kind: timer
# duration: 1200

notifications:
slack_channels:
- '#docs-ops'

0 comments on commit 20d2c1d

Please sign in to comment.