Skip to content

Commit 8e2c3d8

Browse files
hunterwerllaawschristou
authored andcommitted
Remove token from intermittent steps on release pipeline (#806)
1 parent 33c2504 commit 8e2c3d8

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

buildspec/cloneRepo.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ phases:
1212
commands:
1313
- git clone $REPO_URL aws-toolkit-vscode
1414
- cd aws-toolkit-vscode && git checkout $CODEBUILD_RESOLVED_SOURCE_VERSION
15+
# remove the repo URL since it is stored in S3
16+
- git remote rm origin
17+
1518
artifacts:
1619
base-directory: aws-toolkit-vscode
1720
files:

buildspec/pushToGithub.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,18 @@ phases:
55
runtime-versions:
66
nodejs: 10
77

8+
pre_build:
9+
commands:
10+
- REPO_URL="https://[email protected]/aws/aws-toolkit-vscode.git"
11+
812
build:
913
commands:
1014
- |
1115
if [ $STAGE != "prod" ]; then
1216
echo "Stage is not production, skipping github push step"
1317
exit 0
1418
fi
19+
git remote add origin $REPO_URL
1520
VERSION=$(node -e "console.log(require('./package.json').version);")
1621
echo "pushing to github"
1722
git push origin --tags

0 commit comments

Comments
 (0)