Skip to content

Commit

Permalink
chore: Add 'release' buildspecs for codebuild (#321)
Browse files Browse the repository at this point in the history
This is a step towards a more continuous release process. If
this ends up being a productive path, we can expect to
pull more validation into these codebuild specs.
  • Loading branch information
farleyb-amazon committed Mar 17, 2021
1 parent 9523d48 commit 6af7301
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 0 deletions.
28 changes: 28 additions & 0 deletions codebuild/release/prod-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
version: 0.2

env:
variables:
BRANCH: "master"
secrets-manager:
TWINE_USERNAME: PyPiAdmin:username
TWINE_PASSWORD: PyPiAdmin:password

phases:
install:
runtime-versions:
python: latest
build:
commands:
- pip install tox
- git checkout $BRANCH
- tox -e park
- tox -e release
- git clone https://github.com/aws-samples/busy-engineers-document-bucket.git
- cd busy-engineers-document-bucket/exercises/python/encryption-context-complete
- tox -e test


batch:
fast-fail: false
build-list:
- identifier: prod_release
25 changes: 25 additions & 0 deletions codebuild/release/test-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
version: 0.2

env:
variables:
BRANCH: "master"
secrets-manager:
TWINE_USERNAME: TestPyPiCryptoTools:username
TWINE_PASSWORD: TestPyPiCryptoTools:password

phases:
install:
runtime-versions:
python: latest
build:
commands:
- pip install tox
- git checkout $BRANCH
- tox -e park
- tox -e test-release


batch:
fast-fail: false
build-list:
- identifier: test_release

0 comments on commit 6af7301

Please sign in to comment.