Skip to content

Commit

Permalink
add buildspec
Browse files Browse the repository at this point in the history
  • Loading branch information
terrywbrady committed Aug 6, 2024
1 parent 9765a8d commit 2039c8b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ Gemfile.lock
*.swp
.bundle
.vscode
vendor/
vendor/
doc/
14 changes: 14 additions & 0 deletions buildspec.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
version: 0.2

phases:

build:
on-failure: ABORT
commands:
- bundle exec rdoc lib/*.rb
- rm -rf api/uc3-ssm
- mkdir -p api/uc3-ssm/ruby
- cp -r doc/* api/uc3-ssm/ruby
- echo aws s3 cp --recursive api s3://${S3CFBUCKET}/api
- aws s3 cp --recursive api s3://${S3CFBUCKET}/api
- aws cloudfront create-invalidation --distribution-id ${CFDISTRIBUTIONID} --paths /* --region us-east-1

0 comments on commit 2039c8b

Please sign in to comment.