-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18 from chrisamti/develop
added utf-8 support.
- Loading branch information
Showing
6 changed files
with
124 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
.PHONY: docker help | ||
|
||
UNAME_M := $(shell uname -m) | ||
RACE= | ||
ifeq ($(UNAME_M),x86_64) | ||
RACE=-race | ||
endif | ||
|
||
all: docker ## Test, lint check and build application | ||
|
||
|
||
docker: ## create docker images | ||
# create arm64 | ||
docker buildx build -f Dockerfile --platform linux/arm64 --tag dndit/mjml-server:arm64 . | ||
# create amd64 | ||
docker buildx build -f Dockerfile --platform linux/amd64 --tag dndit/mjml-server:amd64 . | ||
# push arm64 | ||
docker push dndit/mjml-server:arm64 | ||
# push amd64 | ||
docker push dndit/mjml-server:amd64 | ||
# create multi arch manifest | ||
# docker manifest create $(DOCKER_REGISTRY):alpine3.12-manual --amend $(DOCKER_REGISTRY):alpine3.12-arm64 --amend $(DOCKER_REGISTRY):alpine3.12-amd64 | ||
docker manifest create dndit/mjml-server --amend dndit/mjml-server:arm64 --amend dndit/mjml-server:amd64 | ||
# push | ||
docker manifest push dndit/mjml-server | ||
|
||
help: ## Print all possible targets | ||
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z0-9_-]+:.*?## / {gsub("\\\\n",sprintf("\n%22c",""), $$2);printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,6 @@ | |
"body-parser": "^1.18.3", | ||
"commander": "^2.20.3", | ||
"express": "^4.16.3", | ||
"mjml": "^4.10.2" | ||
"mjml": "^4.10.3" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters