diff --git a/.project b/.project new file mode 100644 index 000000000..4ba4bf286 --- /dev/null +++ b/.project @@ -0,0 +1,11 @@ + + + aws-codepipeline-s3-codedeploy-linux + + + + + + + + diff --git a/appspec.yml b/appspec.yml index 7f0cdf94d..6abbdab94 100644 --- a/appspec.yml +++ b/appspec.yml @@ -5,6 +5,9 @@ files: destination: /var/www/html/ hooks: BeforeInstall: + - location: scripts/cleanup + timeout: 300 + runas: root - location: scripts/install_dependencies timeout: 300 runas: root diff --git a/build.sh b/build.sh new file mode 100755 index 000000000..cda795af2 --- /dev/null +++ b/build.sh @@ -0,0 +1,2 @@ +zip -r ../aws-codepipeline-s3-aws-codedeploy_linux1.zip * +aws s3 cp ../aws-codepipeline-s3-aws-codedeploy_linux1.zip s3://awscd-demotim diff --git a/dist/aws-codepipeline-s3-aws-codedeploy_linux.zip b/dist/aws-codepipeline-s3-aws-codedeploy_linux.zip deleted file mode 100644 index f06d04fe7..000000000 Binary files a/dist/aws-codepipeline-s3-aws-codedeploy_linux.zip and /dev/null differ diff --git a/scripts/cleanup b/scripts/cleanup new file mode 100755 index 000000000..29512748f --- /dev/null +++ b/scripts/cleanup @@ -0,0 +1,3 @@ +#!/bin/bash +# Execute a pre build cleanup commands +rm -f /var/www/html/index.html