Updated docker build and publish

This commit is contained in:
Sambo Chea 2021-03-30 11:55:50 +07:00
parent e1ebbf67d8
commit 3a0191a5d6
2 changed files with 2 additions and 5 deletions

View File

@ -20,4 +20,4 @@ jobs:
- name: Build and Push from Makefile
run: |
make build publish
make build

View File

@ -3,13 +3,10 @@ DOCKER_IMAGE=cubetiq/excel2json
build:
@echo "Building docker image..."
docker build . -t ${DOCKER_IMAGE}
docker push ${DOCKER_IMAGE}
run:
@echo "Running container..."
docker run --rm -t ${DOCKER_IMAGE}
publish:
@echo "Pubishing docker image..."
docker push ${DOCKER_IMAGE}
.PHONY: build