mirror of
https://github.com/GSA/notifications-api.git
synced 2026-06-03 04:48:29 -04:00
Remove build-codedeploy-artifact target
Also remove appspec files that are not used in the paas world.
This commit is contained in:
18
Makefile
18
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:
|
||||
|
||||
@@ -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
|
||||
32
appspec.yml
32
appspec.yml
@@ -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
|
||||
Reference in New Issue
Block a user