1
1
.PHONY : help dist-dev publish-dev dist-stage publish-stage
2
2
SHELL =/bin/bash
3
- # ## This is the Terraform-generated header for docker-matomo-dev ###
3
+ # ## This is the Terraform-generated header for docker-matomo-dev. If ###
4
+ # ## this is a Lambda repo, uncomment the FUNCTION line below ###
5
+ # ## and review the other commented lines in the document. ###
4
6
ECR_NAME_DEV: =docker-matomo-dev
5
7
ECR_URL_DEV: =222053980223.dkr.ecr.us-east-1.amazonaws.com/docker-matomo-dev
6
- # ## End of Terraform-generated header ###
8
+ # FUNCTION_DEV:=
9
+ # ## End of Terraform-generated header ###
7
10
8
11
help : # # Print this message
9
12
@awk ' BEGIN { FS = ":.*##"; print "Usage: make <target>\n\nTargets:" } \
@@ -21,10 +24,16 @@ publish-dev: dist-dev ## Build, tag and push (intended for developer-based manua
21
24
docker push $(ECR_URL_DEV ) :latest
22
25
docker push $(ECR_URL_DEV ) :` git describe --always`
23
26
24
- # ## Terraform-generated manual shortcuts for deploying to Stage ###
25
- # ## This requires that ECR_NAME_STAGE & ECR_URL_STAGE environment variables are set locally
26
- # ## by the developer and that the developer has authenticated to the correct AWS Account.
27
- # ## The values for the environment variables can be found in the stage_build.yml caller workflow.
27
+ # ## If this is a Lambda repo, uncomment the two lines below ###
28
+ # update-lambda-dev: ## Updates the lambda with whatever is the most recent image in the ecr (intended for developer-based manual update)
29
+ # aws lambda update-function-code --function-name $(FUNCTION_DEV) --image-uri $(ECR_URL_DEV):latest
30
+
31
+
32
+ # ## Terraform-generated manual shortcuts for deploying to Stage. This requires ###
33
+ # ## that ECR_NAME_STAGE, ECR_URL_STAGE, and FUNCTION_STAGE environment ###
34
+ # ## variables are set locally by the developer and that the developer has ###
35
+ # ## authenticated to the correct AWS Account. The values for the environment ###
36
+ # ## variables can be found in the stage_build.yml caller workflow. ###
28
37
dist-stage : # # Only use in an emergency
29
38
docker build --platform linux/amd64 \
30
39
-t $(ECR_URL_STAGE ) :latest \
@@ -35,3 +44,7 @@ publish-stage: ## Only use in an emergency
35
44
docker login -u AWS -p $$(aws ecr get-login-password --region us-east-1 ) $(ECR_URL_STAGE )
36
45
docker push $(ECR_URL_STAGE ) :latest
37
46
docker push $(ECR_URL_STAGE ) :` git describe --always`
47
+
48
+ # ## If this is a Lambda repo, uncomment the two lines below ###
49
+ # update-lambda-stage: ## Updates the lambda with whatever is the most recent image in the ecr (intended for developer-based manual update)
50
+ # aws lambda update-function-code --function-name $(FUNCTION_STAGE) --image-uri $(ECR_URL_STAGE):latest
0 commit comments