-
Notifications
You must be signed in to change notification settings - Fork 50
/
buildspec-setup.yml
31 lines (31 loc) · 1012 Bytes
/
buildspec-setup.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
version: 0.2
phases:
install:
runtime-versions:
python: 3.7
commands:
- python --version
build:
commands:
- echo In buildspec-setup.yml Build started on `date`
- >-
aws s3api list-buckets --query 'Buckets[?starts_with(Name,
`pipeline-dashboard-$(aws sts get-caller-identity --output
text --query 'Account')`) == `true`].[Name]' --output text | xargs -I {} aws
s3 rb s3://{} --force
- >-
aws s3 mb s3://pipeline-dashboard-$(aws sts get-caller-identity --output
text --query 'Account')
- >-
aws s3 sync . s3://pipeline-dashboard-$(aws sts get-caller-identity
--output text --query 'Account')
- zip -r pipeline-dashboard.zip *.* ./src ./test
- >-
aws s3 sync . s3://pipeline-dashboard-$(aws sts get-caller-identity
--output text --query 'Account')
post_build:
commands:
- echo In buildspec-setup.yml Build completed on `date`
artifacts:
files:
- '**/*'