Updated makefile and docker for publish

This commit is contained in:
Sambo Chea 2021-03-30 11:34:42 +07:00
parent 6c238508e2
commit acf0978d76
2 changed files with 8 additions and 4 deletions

View File

@ -1,8 +1,8 @@
name: Docker CI name: Docker CI
on: on:
release: push:
types: [created] branches: [master]
jobs: jobs:
docker: docker:
@ -20,4 +20,4 @@ jobs:
- name: Build and Push from Makefile - name: Build and Push from Makefile
run: | run: |
make build make build publish

View File

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