Skip to content

Commit

Permalink
chore: checkout corresponding branch instead of commit (#477)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
josecorella authored Jun 21, 2022
1 parent 4b8794e commit c2f0c75
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 2 additions & 3 deletions codebuild/release/prod-release.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
version: 0.2

env:
variables:
BRANCH: "master"
secrets-manager:
TWINE_USERNAME: PyPiAdmin:username
TWINE_PASSWORD: PyPiAdmin:password
Expand All @@ -14,7 +12,8 @@ phases:
build:
commands:
- pip install tox
- git checkout $BRANCH
- git fetch origin $COMMIT_ID:$COMMIT_ID --depth=1
- git checkout $COMMIT_ID
- tox -e park
- tox -e release
- git clone https://github.com/aws-samples/busy-engineers-document-bucket.git
Expand Down
5 changes: 2 additions & 3 deletions codebuild/release/test-release.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
version: 0.2

env:
variables:
BRANCH: "master"
secrets-manager:
TWINE_USERNAME: TestPyPiCryptoTools:username
TWINE_PASSWORD: TestPyPiCryptoTools:password
Expand All @@ -14,7 +12,8 @@ phases:
build:
commands:
- pip install tox
- git checkout $BRANCH
- git fetch origin $COMMIT_ID:$COMMIT_ID --depth=1
- git checkout $COMMIT_ID
- tox -e park
- tox -e test-release

Expand Down

0 comments on commit c2f0c75

Please sign in to comment.