Can we use github actions to call Makefile commands and build/push images to docker hub.
I saw many examples using Github actions to build and push images to dockerhub but couldnt get a sample or doc on how to integrate same with Makefile
- name: Build and push Docker image
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
https://docs.github.com/en/actions/guides/publishing-docker-images
I actualy have to build some utils and copy same to Docker image. So its not just a staright forward docker build
command.