From fcff6f7adcff295b2591accb35e864463b4646ca Mon Sep 17 00:00:00 2001 From: alswl Date: Sat, 10 Dec 2022 20:04:24 +0800 Subject: [PATCH] fix: missing dockerignore --- Makefile | 8 +++++--- excalidraw.dockerignore | 11 +++++++++++ 2 files changed, 16 insertions(+), 3 deletions(-) create mode 100644 excalidraw.dockerignore diff --git a/Makefile b/Makefile index 20c2725..7d88f9e 100644 --- a/Makefile +++ b/Makefile @@ -32,7 +32,7 @@ IMAGE_PREFIX ?= $(strip ) IMAGE_SUFFIX ?= $(strip ) # This repo's root import path (under GOPATH). -ROOT := github.com/alswl/excalidraw.alswl.com +ROOT := github.com/alswl/excalidraw-collaboration # Git commit sha. COMMIT := $(strip $(shell git rev-parse --short HEAD 2>/dev/null)) @@ -54,6 +54,7 @@ help: ## Display this help patch: ## Patch endpoints @echo "# you can edit excalidraw.env.production to change endpoints" cp excalidraw.env.production excalidraw/.env.production + cp excalidraw.dockerignore excalidraw/..dockerignore .PHONY: images images: ## Build docker images @@ -78,12 +79,13 @@ push-images: ## Push docker images done .PHONY: bump-version -currentVersion=$(shell head -n 1 ./VERSION) +previousVersion=$(shell head -n 1 ./VERSION) bump-version: ## Bump images version for docker-compose @for targe in $(TARGETS); do \ for registry in $(REGISTRIES); do \ image=$${registry}$(IMAGE_PREFIX)$${target}$(IMAGE_SUFFIX):$(VERSION); \ - gsed -i "s#$(image):$(currentVersion)#$(image):$(VERSION)#g" docker-compose.yaml; \ + gsed -i "s#$(image):$(previousVersion)#$(image):$(VERSION)#g" docker-compose.yaml; \ done; \ done + echo $(VERSION) > ./VERSION @echo "PLEASE using 'git commit -a' to commit image version changes" diff --git a/excalidraw.dockerignore b/excalidraw.dockerignore new file mode 100644 index 0000000..5e3baf7 --- /dev/null +++ b/excalidraw.dockerignore @@ -0,0 +1,11 @@ +* +!.env +!.env.production +!.eslintrc.json +!.npmrc +!.prettierrc +!package.json +!public/ +!src/ +!tsconfig.json +!yarn.lock