From 44c49b10e2230341f873143a00812ed4ede90e3e Mon Sep 17 00:00:00 2001 From: Sambo Chea Date: Fri, 26 Mar 2021 12:20:52 +0700 Subject: [PATCH] Updated the makefile for build with action --- .github/workflows/docker.yml | 12 +----------- Makefile | 2 ++ 2 files changed, 3 insertions(+), 11 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 8c0d072..5342193 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -24,16 +24,6 @@ jobs: uses: actions/checkout@v2 - - name: Build from Makefile + name: Build and Push from Makefile run: | make build - docker images - - - name: Docker Push - uses: docker/build-push-action@v2 - with: - push: true - tags: cubetiq/calpine-os-linux:latest - - - name: Image digest - run: echo ${{ steps.docker_build.outputs.digest }} diff --git a/Makefile b/Makefile index abc2204..1620032 100644 --- a/Makefile +++ b/Makefile @@ -5,4 +5,6 @@ build: ./src/build.sh @echo "Size of the image: ${DOCKER_IMAGE_SIZE}" + $(shell docker push ${DOCKER_IMAGE_NAME}) + .PHONY: build