diff --git a/Makefile b/Makefile index ea6bb8c41..297bd28a2 100644 --- a/Makefile +++ b/Makefile @@ -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: diff --git a/appspec-db-migration.yml b/appspec-db-migration.yml deleted file mode 100644 index b840f4432..000000000 --- a/appspec-db-migration.yml +++ /dev/null @@ -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 diff --git a/appspec.yml b/appspec.yml deleted file mode 100644 index 87a0f944a..000000000 --- a/appspec.yml +++ /dev/null @@ -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