Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion libs/getsentry.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@
*/

{
group_order: ['s4s2', 'de', 'us', 'control', 'prod-control', 'snty-tools', 'st'],
group_order: ['s4s2', 'de', 'us', 'us2', 'control', 'prod-control', 'snty-tools', 'st'],
// Empty for now — add future test groups here
test_group_order: [],
// These groupings consist of user facing deployments
pipeline_groups: {
s4s2: ['s4s2'],
de: ['de'],
us: ['us'],
us2: ['us2'],
control: ['control'],
'prod-control': ['prod-control'],
'snty-tools': ['snty-tools'],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ local pipedream = import '../../../../libs/pipedream.libsonnet';
local pipedream_config = {
name: 'example',
auto_deploy: true,
exclude_regions: ['us', 's4s2', 'customer-1', 'customer-2', 'customer-4', 'customer-7'],
exclude_regions: ['us', 'us2', 's4s2', 'customer-1', 'customer-2', 'customer-4', 'customer-7'],
};

local cells_for(region) = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,16 @@
],
"us": [
"us"
],
"us2": [
"us2"
]
},
"group_order": [
"s4s2",
"de",
"us",
"us2",
"control",
"prod-control",
"snty-tools",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,14 +109,14 @@
"format_version": 10,
"pipelines": {
"deploy-example-st": {
"display_order": 5,
"display_order": 6,
"environment_variables": {
"PIPEDREAM_GROUP_REGIONS": "customer-1,customer-2,customer-4,customer-7"
},
"group": "example",
"materials": {
"deploy-example-us-pipeline-complete": {
"pipeline": "deploy-example-us",
"deploy-example-us2-pipeline-complete": {
"pipeline": "deploy-example-us2",
"stage": "pipeline-complete"
},
"example_repo": {
Expand Down Expand Up @@ -238,5 +238,60 @@
]
}
}
},
"deploy-example-us2.yaml": {
"format_version": 10,
"pipelines": {
"deploy-example-us2": {
"display_order": 5,
"environment_variables": {
"PIPEDREAM_GROUP_REGIONS": "us2"
},
"group": "example",
"materials": {
"deploy-example-us-pipeline-complete": {
"pipeline": "deploy-example-us",
"stage": "pipeline-complete"
},
"example_repo": {
"branch": "master",
"destination": "example",
"git": "git@github.com:getsentry/example.git"
}
},
"stages": [
{
"deploy": {
"jobs": {
"deploy": {
"elastic_profile_id": "example",
"tasks": [
{
"script": "if [ -n \"${PIPEDREAM_GROUP_REGIONS:-}\" ] && [ -n \"${SENTRY_REGION:-}\" ]; then\n case \",${PIPEDREAM_GROUP_REGIONS},\" in\n *\",${SENTRY_REGION},\"*) ;;\n *)\n echo \"Skipping $SENTRY_REGION (not in PIPEDREAM_GROUP_REGIONS=$PIPEDREAM_GROUP_REGIONS)\"\n exit 0\n ;;\n esac\nfi\n./deploy.sh --region=us2"
}
]
}
}
}
},
{
"pipeline-complete": {
"fetch_materials": false,
"jobs": {
"pipeline-complete": {
"tasks": [
{
"exec": {
"command": true
}
}
]
}
}
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -98,14 +98,14 @@
]
},
"deploy-example-st": {
"display_order": 5,
"display_order": 6,
"environment_variables": {
"PIPEDREAM_GROUP_REGIONS": "customer-1,customer-2,customer-4,customer-7"
},
"group": "example",
"materials": {
"deploy-example-us-pipeline-complete": {
"pipeline": "deploy-example-us",
"deploy-example-us2-pipeline-complete": {
"pipeline": "deploy-example-us2",
"stage": "pipeline-complete"
},
"example_repo": {
Expand Down Expand Up @@ -220,6 +220,56 @@
}
}
]
},
"deploy-example-us2": {
"display_order": 5,
"environment_variables": {
"PIPEDREAM_GROUP_REGIONS": "us2"
},
"group": "example",
"materials": {
"deploy-example-us-pipeline-complete": {
"pipeline": "deploy-example-us",
"stage": "pipeline-complete"
},
"example_repo": {
"branch": "master",
"destination": "example",
"git": "git@github.com:getsentry/example.git"
}
},
"stages": [
{
"deploy": {
"jobs": {
"deploy": {
"elastic_profile_id": "example",
"tasks": [
{
"script": "if [ -n \"${PIPEDREAM_GROUP_REGIONS:-}\" ] && [ -n \"${SENTRY_REGION:-}\" ]; then\n case \",${PIPEDREAM_GROUP_REGIONS},\" in\n *\",${SENTRY_REGION},\"*) ;;\n *)\n echo \"Skipping $SENTRY_REGION (not in PIPEDREAM_GROUP_REGIONS=$PIPEDREAM_GROUP_REGIONS)\"\n exit 0\n ;;\n esac\nfi\n./deploy.sh --region=us2"
}
]
}
}
}
},
{
"pipeline-complete": {
"fetch_materials": false,
"jobs": {
"pipeline-complete": {
"tasks": [
{
"exec": {
"command": true
}
}
]
}
}
}
}
]
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -113,14 +113,14 @@
"format_version": 10,
"pipelines": {
"deploy-example-st": {
"display_order": 5,
"display_order": 6,
"environment_variables": {
"PIPEDREAM_GROUP_REGIONS": "customer-1,customer-2,customer-4,customer-7"
},
"group": "example",
"materials": {
"deploy-example-us-pipeline-complete": {
"pipeline": "deploy-example-us",
"deploy-example-us2-pipeline-complete": {
"pipeline": "deploy-example-us2",
"stage": "pipeline-complete"
},
"example_repo": {
Expand Down Expand Up @@ -243,6 +243,61 @@
}
}
},
"deploy-example-us2.yaml": {
"format_version": 10,
"pipelines": {
"deploy-example-us2": {
"display_order": 5,
"environment_variables": {
"PIPEDREAM_GROUP_REGIONS": "us2"
},
"group": "example",
"materials": {
"deploy-example-us-pipeline-complete": {
"pipeline": "deploy-example-us",
"stage": "pipeline-complete"
},
"example_repo": {
"branch": "master",
"destination": "example",
"git": "git@github.com:getsentry/example.git"
}
},
"stages": [
{
"deploy": {
"jobs": {
"deploy": {
"elastic_profile_id": "example",
"tasks": [
{
"script": "if [ -n \"${PIPEDREAM_GROUP_REGIONS:-}\" ] && [ -n \"${SENTRY_REGION:-}\" ]; then\n case \",${PIPEDREAM_GROUP_REGIONS},\" in\n *\",${SENTRY_REGION},\"*) ;;\n *)\n echo \"Skipping $SENTRY_REGION (not in PIPEDREAM_GROUP_REGIONS=$PIPEDREAM_GROUP_REGIONS)\"\n exit 0\n ;;\n esac\nfi\n./deploy.sh --region=us2"
}
]
}
}
}
},
{
"pipeline-complete": {
"fetch_materials": false,
"jobs": {
"pipeline-complete": {
"tasks": [
{
"exec": {
"command": true
}
}
]
}
}
}
}
]
}
}
},
"deploy-example.yaml": {
"format_version": 10,
"pipelines": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,14 +135,14 @@
]
},
"deploy-example-st": {
"display_order": 5,
"display_order": 6,
"environment_variables": {
"PIPEDREAM_GROUP_REGIONS": "customer-1,customer-2,customer-4,customer-7"
},
"group": "example",
"materials": {
"deploy-example-us-pipeline-complete": {
"pipeline": "deploy-example-us",
"deploy-example-us2-pipeline-complete": {
"pipeline": "deploy-example-us2",
"stage": "pipeline-complete"
},
"example_repo": {
Expand Down Expand Up @@ -257,6 +257,56 @@
}
}
]
},
"deploy-example-us2": {
"display_order": 5,
"environment_variables": {
"PIPEDREAM_GROUP_REGIONS": "us2"
},
"group": "example",
"materials": {
"deploy-example-us-pipeline-complete": {
"pipeline": "deploy-example-us",
"stage": "pipeline-complete"
},
"example_repo": {
"branch": "master",
"destination": "example",
"git": "git@github.com:getsentry/example.git"
}
},
"stages": [
{
"deploy": {
"jobs": {
"deploy": {
"elastic_profile_id": "example",
"tasks": [
{
"script": "if [ -n \"${PIPEDREAM_GROUP_REGIONS:-}\" ] && [ -n \"${SENTRY_REGION:-}\" ]; then\n case \",${PIPEDREAM_GROUP_REGIONS},\" in\n *\",${SENTRY_REGION},\"*) ;;\n *)\n echo \"Skipping $SENTRY_REGION (not in PIPEDREAM_GROUP_REGIONS=$PIPEDREAM_GROUP_REGIONS)\"\n exit 0\n ;;\n esac\nfi\n./deploy.sh --region=us2"
}
]
}
}
}
},
{
"pipeline-complete": {
"fetch_materials": false,
"jobs": {
"pipeline-complete": {
"tasks": [
{
"exec": {
"command": true
}
}
]
}
}
}
}
]
}
}
}
Loading
Loading