generated from Byndyusoft/node-typescript-template
-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Example
BUILDER_IMAGE=$(DOCKER_HUB_LOCAL)/node:18.18.2-bullseye
define docker-inside-node
docker run \
--rm -t \
-u root \
-v $(PWD):/app \
-w /app \
-e CI=true \
$(BUILDER_IMAGE) \
sh -x -c "$(strip $(1))"
endef
################################################################################
.PHONY: version
version:
$(call docker-inside-node, yarn version $(VERSION) -i)
################################################################################
.PHONY: build-app
build-app:
$(call docker-inside-node, yarn install --immutable)
$(call docker-inside-node, yarn run build)
################################################################################
.PHONY: build-image
build-image:
@docker build -t ${IMAGE_NAME}:${IMAGE_TAG} \
-f Dockerfile .
################################################################################
.PHONY: test
test:
$(call docker-inside-node, yarn run test:cov)
################################################################################
.PHONY: lint
lint:
$(call docker-inside-node, yarn run lint)Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request