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
on:
release:
types: [created]
push:
branches: [master]
jobs:
docker:
@ -20,4 +20,4 @@ jobs:
- name: Build and Push from Makefile
run: |
make build
make build publish

View File

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