feat: separate base image to make github action faster

This commit is contained in:
Tunghsiao Liu
2021-07-06 07:09:10 -04:00
parent 7bc83e6f4c
commit 5770064c68
3 changed files with 33 additions and 8 deletions

22
Makefile Normal file
View File

@ -0,0 +1,22 @@
all: build
build-base:
docker build -f Dockerfile.base -t openbayes/docsearch-scraper-action-base:latest .
build:
docker build -t openbayes/docsearch-scraper-action:latest .
run:
docker run --rm -it --name docsearch-scraper-action openbayes/docsearch-scraper-action:latest
push-base:
docker push openbayes/docsearch-scraper-action-base:latest
push:
docker push openbayes/docsearch-scraper-action:latest
stop:
docker rm -f docsearch-scraper-action
clean:
docker rmi openbayes/docsearch-scraper-action:latest