Remove build-codedeploy-artifact target

Also remove appspec files that are not used in the paas world.
This commit is contained in:
Athanasios Voutsadakis
2017-12-28 18:18:32 +00:00
parent 360fa787f9
commit a833bbf6d5
3 changed files with 4 additions and 64 deletions

View File

@@ -85,19 +85,6 @@ build: dependencies generate-version-file ## Build project
.PHONY: cf-build
cf-build: dependencies generate-version-file ## Build project for PAAS
.PHONY: build-codedeploy-artifact
build-codedeploy-artifact: ## Build the deploy artifact for CodeDeploy
rm -rf target
mkdir -p target
zip -y -q -r -x@deploy-exclude.lst target/notifications-api.zip ./
rm -rf build/db-migration-codedeploy
mkdir -p build/db-migration-codedeploy
unzip target/notifications-api.zip -d build/db-migration-codedeploy
cd build/db-migration-codedeploy && \
mv -f appspec-db-migration.yml appspec.yml && \
zip -y -q -r -x@deploy-exclude.lst ../../target/notifications-api-db-migration.zip ./
.PHONY: upload-codedeploy-artifact ## Upload the deploy artifact for CodeDeploy
upload-codedeploy-artifact: check-env-vars
$(if ${DEPLOY_BUILD_NUMBER},,$(error Must specify DEPLOY_BUILD_NUMBER))
@@ -105,7 +92,10 @@ upload-codedeploy-artifact: check-env-vars
aws s3 cp --region eu-west-1 --sse AES256 target/notifications-api-db-migration.zip s3://${DNS_NAME}-codedeploy/notifications-api-db-migration-${DEPLOY_BUILD_NUMBER}.zip
.PHONY: build-paas-artifact
build-paas-artifact: build-codedeploy-artifact ## Build the deploy artifact for PaaS
build-paas-artifact: ## Build the deploy artifact for PaaS
rm -rf target
mkdir -p target
zip -y -q -r -x@deploy-exclude.lst target/notifications-api.zip ./
.PHONY: upload-paas-artifact ## Upload the deploy artifact for PaaS
upload-paas-artifact:

View File

@@ -1,18 +0,0 @@
---
os: linux
version: 0.0
files:
- destination: /home/notify-app/notifications-api
source: /
hooks:
AfterInstall:
- location: scripts/aws_install_dependencies.sh
runas: root
timeout: 1000
- location: scripts/aws_change_ownership.sh
runas: root
timeout: 300
ApplicationStart:
- location: scripts/aws_run_db_migrations.sh
runas: root
timeout: 300

View File

@@ -1,32 +0,0 @@
---
os: linux
version: 0.0
files:
- destination: /home/notify-app/notifications-api
source: /
hooks:
BeforeInstall:
- location: scripts/aws_clear_instance.sh
runas: root
timeout: 1000
AfterInstall:
- location: scripts/aws_install_dependencies.sh
runas: root
timeout: 1000
- location: scripts/aws_change_ownership.sh
runas: root
timeout: 300
ApplicationStart:
- location: scripts/aws_start_app.sh
runas: root
timeout: 300
- location: scripts/register_with_elb.sh
runas: ubuntu
timeout: 300
ApplicationStop:
- location: scripts/deregister_from_elb.sh
runas: ubuntu
timeout: 300
- location: scripts/aws_stop_app.sh
runas: root
timeout: 300