Skip to content

Commit 5b3f285

Browse files
authored
ci(automation): added openGate build spec (#6108)
## Problem We close source gate during the start of a release to prevent unwanted commits coming in, but we have to remember to manually open it again. We want to automatically re-open the source gate after a release is triggered. This PR creates the buildSpec file to be used by codeBuild project in our release pipeline to open the source transition. Related infra CR: https://code.amazon.com/reviews/CR-162245234/revisions/1#/diff --- <!--- REMINDER: Ensure that your PR meets the guidelines in CONTRIBUTING.md --> License: I confirm that my contribution is made under the terms of the Apache 2.0 license.
1 parent 2257bd0 commit 5b3f285

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

buildspec/release/35opengate.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
version: 0.2
2+
3+
phases:
4+
install:
5+
runtime-versions:
6+
nodejs: 16
7+
8+
pre_build:
9+
commands:
10+
- STAGE_NAME=SourceWithGit
11+
- PIPELINE=$(echo $CODEBUILD_INITIATOR | sed -e 's/codepipeline\///')
12+
build:
13+
commands:
14+
- |
15+
aws codepipeline enable-stage-transition \
16+
--pipeline-name "$PIPELINE" \
17+
--stage-name "$STAGE_NAME" \
18+
--transition-type "Inbound"

0 commit comments

Comments
 (0)