mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-24 17:31:34 -05:00
Merge pull request #835 from alphagov/fix-code-deploy-artifact
Remove target dir before build and include any dotfiles in the zips
This commit is contained in:
5
Makefile
5
Makefile
@@ -85,15 +85,16 @@ 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 -r -x@deploy-exclude.lst target/notifications-api.zip *
|
||||
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 -r -x@deploy-exclude.lst ../../target/notifications-api-db-migration.zip *
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user