From acf0978d76451d091bd715faecdaade612711166 Mon Sep 17 00:00:00 2001 From: Sambo Chea Date: Tue, 30 Mar 2021 11:34:42 +0700 Subject: [PATCH] Updated makefile and docker for publish --- .github/workflows/docker-publish.yml | 6 +++--- Makefile | 6 +++++- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index eecf30c..f84df8c 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -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 diff --git a/Makefile b/Makefile index 32140e5..33de896 100644 --- a/Makefile +++ b/Makefile @@ -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