Rework how the clean build command works.
This commit is contained in:
parent
fed6a48332
commit
2112d1c970
4
Makefile
4
Makefile
@ -6,8 +6,8 @@ build: dist/hff-entry-forms-api.tar.gz dist/hff-entry-forms-web.tar.gz
|
|||||||
clean:
|
clean:
|
||||||
-rm -r dist
|
-rm -r dist
|
||||||
-rm -r web/dist
|
-rm -r web/dist
|
||||||
-docker container prune
|
make -C api clean
|
||||||
-docker image prune
|
make -C web clean
|
||||||
|
|
||||||
update-version:
|
update-version:
|
||||||
operations/update-version.sh
|
operations/update-version.sh
|
||||||
|
@ -69,6 +69,9 @@ serve-docker: build-image
|
|||||||
# Utility
|
# Utility
|
||||||
# -------
|
# -------
|
||||||
|
|
||||||
|
clean:
|
||||||
|
-docker image rm $(ECR_ACCOUNT_URL)/hff_entry_forms_api:$(VERSION)
|
||||||
|
|
||||||
# Authenticate docker to the AWS private elastic container repository.
|
# Authenticate docker to the AWS private elastic container repository.
|
||||||
ecr-auth:
|
ecr-auth:
|
||||||
aws ecr get-login-password --region us-west-2 | docker login --username AWS --password-stdin $(ECR_ACCOUNT_URL)
|
aws ecr get-login-password --region us-west-2 | docker login --username AWS --password-stdin $(ECR_ACCOUNT_URL)
|
||||||
|
@ -3,3 +3,6 @@ build:
|
|||||||
|
|
||||||
serve:
|
serve:
|
||||||
npm run serve
|
npm run serve
|
||||||
|
|
||||||
|
clean:
|
||||||
|
-rm -r dist
|
||||||
|
Loading…
Reference in New Issue
Block a user