Skip to content

Commit 6af7301

Browse files
chore: Add 'release' buildspecs for codebuild (#321)
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.
1 parent 9523d48 commit 6af7301

File tree

2 files changed

+53
-0
lines changed

2 files changed

+53
-0
lines changed

codebuild/release/prod-release.yml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
version: 0.2
2+
3+
env:
4+
variables:
5+
BRANCH: "master"
6+
secrets-manager:
7+
TWINE_USERNAME: PyPiAdmin:username
8+
TWINE_PASSWORD: PyPiAdmin:password
9+
10+
phases:
11+
install:
12+
runtime-versions:
13+
python: latest
14+
build:
15+
commands:
16+
- pip install tox
17+
- git checkout $BRANCH
18+
- tox -e park
19+
- tox -e release
20+
- git clone https://github.com/aws-samples/busy-engineers-document-bucket.git
21+
- cd busy-engineers-document-bucket/exercises/python/encryption-context-complete
22+
- tox -e test
23+
24+
25+
batch:
26+
fast-fail: false
27+
build-list:
28+
- identifier: prod_release

codebuild/release/test-release.yml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
version: 0.2
2+
3+
env:
4+
variables:
5+
BRANCH: "master"
6+
secrets-manager:
7+
TWINE_USERNAME: TestPyPiCryptoTools:username
8+
TWINE_PASSWORD: TestPyPiCryptoTools:password
9+
10+
phases:
11+
install:
12+
runtime-versions:
13+
python: latest
14+
build:
15+
commands:
16+
- pip install tox
17+
- git checkout $BRANCH
18+
- tox -e park
19+
- tox -e test-release
20+
21+
22+
batch:
23+
fast-fail: false
24+
build-list:
25+
- identifier: test_release

0 commit comments

Comments
 (0)