Skip to content

Commit

Permalink
default local ENV
Browse files Browse the repository at this point in the history
  • Loading branch information
mxfactorial committed Dec 20, 2024
1 parent 46a316b commit 29649d1
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 7 deletions.
3 changes: 2 additions & 1 deletion client/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -177,5 +177,6 @@ date:

test-env-arg:
ifndef ENV
$(error trailing ENV assignment missing, e.g. make test ENV=dev)
$(info trailing ENV assignment missing, e.g. make env ENV=dev|stg|prod, defaulting to 'local')
ENV=local
endif
3 changes: 3 additions & 0 deletions make/ecr-lambda.mk
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,11 @@ clean-image:
###################### globally required ######################

initial-deploy:
@echo "build"
@$(MAKE) -s build-image
@echo "tag"
@$(MAKE) -s tag-dev-image
@echo "push"
@$(MAKE) -s push-dev-image

deploy:
Expand Down
3 changes: 2 additions & 1 deletion make/shared.mk
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ endif

test-env-arg:
ifndef ENV
$(error trailing ENV assignment missing, e.g. make test ENV=dev)
$(info trailing ENV assignment missing, e.g. make env ENV=dev|stg|prod, defaulting to 'local')
ENV=local
endif

clean-log:
Expand Down
3 changes: 2 additions & 1 deletion makefile
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,8 @@ get-secrets:
### arg tests
test-env-arg:
ifndef ENV
$(error trailing ENV assignment missing, e.g. make all ENV=stg)
$(info trailing ENV assignment missing, e.g. make env ENV=dev|stg|prod, defaulting to 'local')
ENV=local
endif

test-cmd-arg:
Expand Down
3 changes: 2 additions & 1 deletion migrations/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,8 @@ endif

test-env-arg:
ifndef ENV
$(error trailing ENV assignment missing, e.g. make test ENV=dev)
$(info trailing ENV assignment missing, e.g. make env ENV=dev|stg|prod, defaulting to 'local')
ENV=local
endif

test-branch-arg:
Expand Down
3 changes: 2 additions & 1 deletion services/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ print:
### arg tests
test-env-arg:
ifndef ENV
$(error trailing ENV assignment missing, e.g. make all ENV=stg)
$(info trailing ENV assignment missing, e.g. make env ENV=dev|stg|prod, defaulting to 'local')
ENV=local
endif

test-cmd-arg:
Expand Down
4 changes: 2 additions & 2 deletions tests/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ test-k8s:

test-env-arg:
ifndef ENV
$(error trailing ENV assignment missing, e.g. make test ENV=dev)
$(info trailing ENV assignment missing, e.g. make env ENV=dev|stg|prod, defaulting to 'local')
ENV=local
endif

test-env-file:
Expand All @@ -59,5 +60,4 @@ get-secrets:
--app-name $(APP_NAME) \
--env $(ENV)
env:
@$(MAKE) -s test-env-arg
@$(MAKE) get-secrets

0 comments on commit 29649d1

Please sign in to comment.