Skip to content

Commit

Permalink
Update gocd-jsonnet to v1.4.1 (#1275)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattgauntseo-sentry authored Aug 1, 2023
1 parent 7b91923 commit 8cc1e63
Show file tree
Hide file tree
Showing 7 changed files with 483 additions and 7 deletions.
8 changes: 4 additions & 4 deletions gocd/generated-pipelines/rollback-symbolicator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@ pipelines:
rollback-symbolicator:
display_order: 1
environment_variables:
ALL_PIPELINE_FLAGS: --pipeline=deploy-symbolicator-s4s --pipeline=deploy-symbolicator-us --pipeline=deploy-symbolicator-customer-1 --pipeline=deploy-symbolicator-customer-2 --pipeline=deploy-symbolicator
ALL_PIPELINE_FLAGS: --pipeline=deploy-symbolicator-s4s --pipeline=deploy-symbolicator-us --pipeline=deploy-symbolicator-customer-1 --pipeline=deploy-symbolicator-customer-2 --pipeline=deploy-symbolicator-customer-3 --pipeline=deploy-symbolicator-customer-4 --pipeline=deploy-symbolicator-customer-5 --pipeline=deploy-symbolicator-customer-6 --pipeline=deploy-symbolicator
GOCD_ACCESS_TOKEN: '{{SECRET:[devinfra][gocd_access_token]}}'
REGION_PIPELINE_FLAGS: --pipeline=deploy-symbolicator-s4s --pipeline=deploy-symbolicator-us --pipeline=deploy-symbolicator-customer-1 --pipeline=deploy-symbolicator-customer-2
REGION_PIPELINE_FLAGS: --pipeline=deploy-symbolicator-s4s --pipeline=deploy-symbolicator-us --pipeline=deploy-symbolicator-customer-1 --pipeline=deploy-symbolicator-customer-2 --pipeline=deploy-symbolicator-customer-3 --pipeline=deploy-symbolicator-customer-4 --pipeline=deploy-symbolicator-customer-5 --pipeline=deploy-symbolicator-customer-6
ROLLBACK_MATERIAL_NAME: symbolicator_repo
ROLLBACK_STAGE: deploy_primary
group: symbolicator
lock_behavior: unlockWhenFinished
materials:
deploy-symbolicator-customer-2-pipeline-complete:
pipeline: deploy-symbolicator-customer-2
deploy-symbolicator-customer-4-pipeline-complete:
pipeline: deploy-symbolicator-customer-4
stage: pipeline-complete
stages:
- pause_pipelines:
Expand Down
119 changes: 119 additions & 0 deletions gocd/generated-pipelines/symbolicator-customer-3.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
format_version: 10
pipelines:
deploy-symbolicator-customer-3:
display_order: 6
environment_variables:
SENTRY_REGION: customer-3
group: symbolicator
lock_behavior: unlockWhenFinished
materials:
deploy-symbolicator-customer-2-pipeline-complete:
pipeline: deploy-symbolicator-customer-2
stage: pipeline-complete
symbolicator_repo:
branch: master
destination: symbolicator
git: [email protected]:getsentry/symbolicator.git
shallow_clone: true
stages:
- checks:
environment_variables:
GITHUB_TOKEN: '{{SECRET:[devinfra-github][token]}}'
fetch_materials: true
jobs:
checks:
elastic_profile_id: symbolicator
tasks:
- script: |
##!/bin/bash
/devinfra/scripts/checks/githubactions/checkruns.py \
getsentry/symbolicator \
${GO_REVISION_SYMBOLICATOR_REPO} \
'Tests' \
'Sentry-Symbolicator Tests'
- script: |
##!/bin/bash
/devinfra/scripts/checks/googlecloud/checkcloudbuild.py \
${GO_REVISION_SYMBOLICATOR_REPO} \
sentryio \
"us.gcr.io/sentryio/symbolicator"
timeout: 1200
- deploy_canary:
approval:
type: manual
fetch_materials: true
jobs:
create_sentry_release:
elastic_profile_id: symbolicator
environment_variables:
ENVIRONMENT: canary
SENTRY_AUTH_TOKEN: '{{SECRET:[devinfra-temp][symbolicator_sentry_auth_token]}}'
SENTRY_URL: https://sentry.my.sentry.io/
tasks:
- script: |
##!/bin/bash
./symbolicator/scripts/create-sentry-release "${GO_REVISION_SYMBOLICATOR_REPO}" "${ENVIRONMENT}"
timeout: 1200
deploy:
elastic_profile_id: symbolicator
environment_variables:
LABEL_SELECTOR: service=symbolicator,deploy_if_canary=true
tasks:
- script: |
##!/bin/bash
eval $(/devinfra/scripts/regions/project_env_vars.py --region="${SENTRY_REGION}")
/devinfra/scripts/k8s/k8stunnel
/devinfra/scripts/k8s/k8s-deploy.py \
--type="statefulset" \
--label-selector="${LABEL_SELECTOR}" \
--image="us.gcr.io/sentryio/symbolicator:${GO_REVISION_SYMBOLICATOR_REPO}" \
--container-name="symbolicator" \
--container-name="cleanup"
timeout: 1200
- deploy_primary:
approval:
type: manual
fetch_materials: true
jobs:
create_sentry_release:
elastic_profile_id: symbolicator
environment_variables:
ENVIRONMENT: production
SENTRY_AUTH_TOKEN: '{{SECRET:[devinfra-temp][symbolicator_sentry_auth_token]}}'
SENTRY_URL: https://sentry.my.sentry.io/
tasks:
- script: |
##!/bin/bash
./symbolicator/scripts/create-sentry-release "${GO_REVISION_SYMBOLICATOR_REPO}" "${ENVIRONMENT}"
timeout: 1200
deploy:
elastic_profile_id: symbolicator
environment_variables:
LABEL_SELECTOR: service=symbolicator
tasks:
- script: |
##!/bin/bash
eval $(/devinfra/scripts/regions/project_env_vars.py --region="${SENTRY_REGION}")
/devinfra/scripts/k8s/k8stunnel
/devinfra/scripts/k8s/k8s-deploy.py \
--type="statefulset" \
--label-selector="${LABEL_SELECTOR}" \
--image="us.gcr.io/sentryio/symbolicator:${GO_REVISION_SYMBOLICATOR_REPO}" \
--container-name="symbolicator" \
--container-name="cleanup"
timeout: 1200
- pipeline-complete:
approval:
allow_only_on_success: true
type: success
jobs:
pipeline-complete:
tasks:
- exec:
command: true
119 changes: 119 additions & 0 deletions gocd/generated-pipelines/symbolicator-customer-4.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
format_version: 10
pipelines:
deploy-symbolicator-customer-4:
display_order: 7
environment_variables:
SENTRY_REGION: customer-4
group: symbolicator
lock_behavior: unlockWhenFinished
materials:
deploy-symbolicator-customer-3-pipeline-complete:
pipeline: deploy-symbolicator-customer-3
stage: pipeline-complete
symbolicator_repo:
branch: master
destination: symbolicator
git: [email protected]:getsentry/symbolicator.git
shallow_clone: true
stages:
- checks:
environment_variables:
GITHUB_TOKEN: '{{SECRET:[devinfra-github][token]}}'
fetch_materials: true
jobs:
checks:
elastic_profile_id: symbolicator
tasks:
- script: |
##!/bin/bash
/devinfra/scripts/checks/githubactions/checkruns.py \
getsentry/symbolicator \
${GO_REVISION_SYMBOLICATOR_REPO} \
'Tests' \
'Sentry-Symbolicator Tests'
- script: |
##!/bin/bash
/devinfra/scripts/checks/googlecloud/checkcloudbuild.py \
${GO_REVISION_SYMBOLICATOR_REPO} \
sentryio \
"us.gcr.io/sentryio/symbolicator"
timeout: 1200
- deploy_canary:
approval:
type: manual
fetch_materials: true
jobs:
create_sentry_release:
elastic_profile_id: symbolicator
environment_variables:
ENVIRONMENT: canary
SENTRY_AUTH_TOKEN: '{{SECRET:[devinfra-temp][symbolicator_sentry_auth_token]}}'
SENTRY_URL: https://sentry.my.sentry.io/
tasks:
- script: |
##!/bin/bash
./symbolicator/scripts/create-sentry-release "${GO_REVISION_SYMBOLICATOR_REPO}" "${ENVIRONMENT}"
timeout: 1200
deploy:
elastic_profile_id: symbolicator
environment_variables:
LABEL_SELECTOR: service=symbolicator,deploy_if_canary=true
tasks:
- script: |
##!/bin/bash
eval $(/devinfra/scripts/regions/project_env_vars.py --region="${SENTRY_REGION}")
/devinfra/scripts/k8s/k8stunnel
/devinfra/scripts/k8s/k8s-deploy.py \
--type="statefulset" \
--label-selector="${LABEL_SELECTOR}" \
--image="us.gcr.io/sentryio/symbolicator:${GO_REVISION_SYMBOLICATOR_REPO}" \
--container-name="symbolicator" \
--container-name="cleanup"
timeout: 1200
- deploy_primary:
approval:
type: manual
fetch_materials: true
jobs:
create_sentry_release:
elastic_profile_id: symbolicator
environment_variables:
ENVIRONMENT: production
SENTRY_AUTH_TOKEN: '{{SECRET:[devinfra-temp][symbolicator_sentry_auth_token]}}'
SENTRY_URL: https://sentry.my.sentry.io/
tasks:
- script: |
##!/bin/bash
./symbolicator/scripts/create-sentry-release "${GO_REVISION_SYMBOLICATOR_REPO}" "${ENVIRONMENT}"
timeout: 1200
deploy:
elastic_profile_id: symbolicator
environment_variables:
LABEL_SELECTOR: service=symbolicator
tasks:
- script: |
##!/bin/bash
eval $(/devinfra/scripts/regions/project_env_vars.py --region="${SENTRY_REGION}")
/devinfra/scripts/k8s/k8stunnel
/devinfra/scripts/k8s/k8s-deploy.py \
--type="statefulset" \
--label-selector="${LABEL_SELECTOR}" \
--image="us.gcr.io/sentryio/symbolicator:${GO_REVISION_SYMBOLICATOR_REPO}" \
--container-name="symbolicator" \
--container-name="cleanup"
timeout: 1200
- pipeline-complete:
approval:
allow_only_on_success: true
type: success
jobs:
pipeline-complete:
tasks:
- exec:
command: true
119 changes: 119 additions & 0 deletions gocd/generated-pipelines/symbolicator-customer-5.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
format_version: 10
pipelines:
deploy-symbolicator-customer-5:
display_order: 8
environment_variables:
SENTRY_REGION: customer-5
group: symbolicator
lock_behavior: unlockWhenFinished
materials:
deploy-symbolicator-pipeline-complete:
pipeline: deploy-symbolicator
stage: pipeline-complete
symbolicator_repo:
branch: master
destination: symbolicator
git: [email protected]:getsentry/symbolicator.git
shallow_clone: true
stages:
- checks:
environment_variables:
GITHUB_TOKEN: '{{SECRET:[devinfra-github][token]}}'
fetch_materials: true
jobs:
checks:
elastic_profile_id: symbolicator
tasks:
- script: |
##!/bin/bash
/devinfra/scripts/checks/githubactions/checkruns.py \
getsentry/symbolicator \
${GO_REVISION_SYMBOLICATOR_REPO} \
'Tests' \
'Sentry-Symbolicator Tests'
- script: |
##!/bin/bash
/devinfra/scripts/checks/googlecloud/checkcloudbuild.py \
${GO_REVISION_SYMBOLICATOR_REPO} \
sentryio \
"us.gcr.io/sentryio/symbolicator"
timeout: 1200
- deploy_canary:
approval:
type: manual
fetch_materials: true
jobs:
create_sentry_release:
elastic_profile_id: symbolicator
environment_variables:
ENVIRONMENT: canary
SENTRY_AUTH_TOKEN: '{{SECRET:[devinfra-temp][symbolicator_sentry_auth_token]}}'
SENTRY_URL: https://sentry.my.sentry.io/
tasks:
- script: |
##!/bin/bash
./symbolicator/scripts/create-sentry-release "${GO_REVISION_SYMBOLICATOR_REPO}" "${ENVIRONMENT}"
timeout: 1200
deploy:
elastic_profile_id: symbolicator
environment_variables:
LABEL_SELECTOR: service=symbolicator,deploy_if_canary=true
tasks:
- script: |
##!/bin/bash
eval $(/devinfra/scripts/regions/project_env_vars.py --region="${SENTRY_REGION}")
/devinfra/scripts/k8s/k8stunnel
/devinfra/scripts/k8s/k8s-deploy.py \
--type="statefulset" \
--label-selector="${LABEL_SELECTOR}" \
--image="us.gcr.io/sentryio/symbolicator:${GO_REVISION_SYMBOLICATOR_REPO}" \
--container-name="symbolicator" \
--container-name="cleanup"
timeout: 1200
- deploy_primary:
approval:
type: manual
fetch_materials: true
jobs:
create_sentry_release:
elastic_profile_id: symbolicator
environment_variables:
ENVIRONMENT: production
SENTRY_AUTH_TOKEN: '{{SECRET:[devinfra-temp][symbolicator_sentry_auth_token]}}'
SENTRY_URL: https://sentry.my.sentry.io/
tasks:
- script: |
##!/bin/bash
./symbolicator/scripts/create-sentry-release "${GO_REVISION_SYMBOLICATOR_REPO}" "${ENVIRONMENT}"
timeout: 1200
deploy:
elastic_profile_id: symbolicator
environment_variables:
LABEL_SELECTOR: service=symbolicator
tasks:
- script: |
##!/bin/bash
eval $(/devinfra/scripts/regions/project_env_vars.py --region="${SENTRY_REGION}")
/devinfra/scripts/k8s/k8stunnel
/devinfra/scripts/k8s/k8s-deploy.py \
--type="statefulset" \
--label-selector="${LABEL_SELECTOR}" \
--image="us.gcr.io/sentryio/symbolicator:${GO_REVISION_SYMBOLICATOR_REPO}" \
--container-name="symbolicator" \
--container-name="cleanup"
timeout: 1200
- pipeline-complete:
approval:
allow_only_on_success: true
type: success
jobs:
pipeline-complete:
tasks:
- exec:
command: true
Loading

0 comments on commit 8cc1e63

Please sign in to comment.