Skip to content

Commit c2f0c75

Browse files
authored
chore: checkout corresponding branch instead of commit (#477)
* chore: checkout corresponding branch instead of commit * fetch only what we want * remove ; * use commit id instead of branch * fetch commit id instead of branch
1 parent 4b8794e commit c2f0c75

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

Diff for: codebuild/release/prod-release.yml

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
version: 0.2
22

33
env:
4-
variables:
5-
BRANCH: "master"
64
secrets-manager:
75
TWINE_USERNAME: PyPiAdmin:username
86
TWINE_PASSWORD: PyPiAdmin:password
@@ -14,7 +12,8 @@ phases:
1412
build:
1513
commands:
1614
- pip install tox
17-
- git checkout $BRANCH
15+
- git fetch origin $COMMIT_ID:$COMMIT_ID --depth=1
16+
- git checkout $COMMIT_ID
1817
- tox -e park
1918
- tox -e release
2019
- git clone https://github.com/aws-samples/busy-engineers-document-bucket.git

Diff for: codebuild/release/test-release.yml

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
version: 0.2
22

33
env:
4-
variables:
5-
BRANCH: "master"
64
secrets-manager:
75
TWINE_USERNAME: TestPyPiCryptoTools:username
86
TWINE_PASSWORD: TestPyPiCryptoTools:password
@@ -14,7 +12,8 @@ phases:
1412
build:
1513
commands:
1614
- pip install tox
17-
- git checkout $BRANCH
15+
- git fetch origin $COMMIT_ID:$COMMIT_ID --depth=1
16+
- git checkout $COMMIT_ID
1817
- tox -e park
1918
- tox -e test-release
2019

0 commit comments

Comments
 (0)