Skip to content

Commit

Permalink
Add buildspec.yml and appspec.yml
Browse files Browse the repository at this point in the history
- Initial skeleton config files for CodeBuild and CodeDeploy
  • Loading branch information
dvassallo committed Jun 10, 2019
1 parent c21b5cc commit 4f46074
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
5 changes: 5 additions & 0 deletions appspec.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
version: 0.0
os: linux
files:
- source: ./build.tar
destination: /home/ec2-user
21 changes: 21 additions & 0 deletions buildspec.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
version: 0.2

phases:
install:
runtime-versions:
docker: 18
build:
commands:
- echo Build started on `date`
- echo Building the Docker image
- docker build -t dvassallo/encrypted.dev:latest .
post_build:
commands:
- echo Build completed on `date`
- echo Saving the Docker image
- docker save --output build.tar dvassallo/encrypted.dev:latest
artifacts:
files:
- build.tar
- appspec.yml
name: build-$(date +%Y-%m-%d).tar

0 comments on commit 4f46074

Please sign in to comment.