Updated the makefile for build with action

This commit is contained in:
Sambo Chea 2021-03-26 12:20:52 +07:00
parent 3b5c567e67
commit 44c49b10e2
2 changed files with 3 additions and 11 deletions

View File

@ -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 }}

View File

@ -5,4 +5,6 @@ build:
./src/build.sh
@echo "Size of the image: ${DOCKER_IMAGE_SIZE}"
$(shell docker push ${DOCKER_IMAGE_NAME})
.PHONY: build