Skip to content

Add Makefile command for building code (#201) #16

Add Makefile command for building code (#201)

Add Makefile command for building code (#201) #16

name: Build and Push Docker Image
on:
push:
branches:
- develop
jobs:
build_and_push_image:
name: Build and Push Docker Image
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Log in to Docker Hub
run: echo "${{ secrets.DOCKERHUB_PW }}" | docker login -u "${{ secrets.DOCKERHUB_LOGIN }}" --password-stdin
- name: Build Docker image
run: make build-app
- name: Push Docker image
run: docker push pyronear/pyro-engine:latest