ci: Add dev-image workflow (#177)

This commit is contained in:
Shohei Ueda authored and GitHub committed 2020-03-25 19:37:45 +09:00
1 parent 7c4605913c
commit 465b328f75
2 files changed
+46

No files matched your search

+9
View File
@@ -4,6 +4,7 @@ IMAGE_NAME := actions_github_pages_dev:latest
NODE_VERSION := $(shell cat ./.nvmrc)
DOCKER_BUILD := docker build . -t $(IMAGE_NAME) --build-arg NODE_VERSION=$(NODE_VERSION)
DOCKER_RUN := docker run --rm -i -t -v ${PWD}:/repo -v ~/.gitconfig:/root/.gitconfig $(IMAGE_NAME)
DOCKER_RUN_CI := docker run --rm -v ${PWD}:/repo $(IMAGE_NAME)
.PHONY: build
@@ -14,6 +15,10 @@ build:
run:
$(DOCKER_RUN) $(cmd)
.PHONY: cirun
cirun:
$(DOCKER_RUN_CI) $(cmd)
.PHONY: test
test:
$(DOCKER_RUN) npm test
@@ -25,3 +30,7 @@ commit:
.PHONY: all
all:
$(DOCKER_RUN) npm run all
.PHONY: ciall
ciall:
$(DOCKER_RUN_CI) npm run all