From c2f0c75969db2c29be2fb85ed6b29459c1baf9f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Corella?= <39066999+josecorella@users.noreply.github.com> Date: Tue, 21 Jun 2022 10:42:02 -0700 Subject: [PATCH] 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 --- codebuild/release/prod-release.yml | 5 ++--- codebuild/release/test-release.yml | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/codebuild/release/prod-release.yml b/codebuild/release/prod-release.yml index 63db04621..3927e9f33 100644 --- a/codebuild/release/prod-release.yml +++ b/codebuild/release/prod-release.yml @@ -1,8 +1,6 @@ version: 0.2 env: - variables: - BRANCH: "master" secrets-manager: TWINE_USERNAME: PyPiAdmin:username TWINE_PASSWORD: PyPiAdmin:password @@ -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 diff --git a/codebuild/release/test-release.yml b/codebuild/release/test-release.yml index 8189050b2..f0ae96097 100644 --- a/codebuild/release/test-release.yml +++ b/codebuild/release/test-release.yml @@ -1,8 +1,6 @@ version: 0.2 env: - variables: - BRANCH: "master" secrets-manager: TWINE_USERNAME: TestPyPiCryptoTools:username TWINE_PASSWORD: TestPyPiCryptoTools:password @@ -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