Skip to content

Merge branch 'master' of https://github.com/hossainchisty/Real-Estate… #31

Merge branch 'master' of https://github.com/hossainchisty/Real-Estate…

Merge branch 'master' of https://github.com/hossainchisty/Real-Estate… #31

Workflow file for this run

name: 🏗 Build and Push Docker Image
on:
push:
branches:
- master
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: 🏗 Checkout code
uses: actions/checkout@v2
- name: 🔐 Login to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: 📦 Build Docker image
run: |
docker build \
--pull \
--cache-from ${{ secrets.DOCKER_USERNAME }}/${{ secrets.DOCKER_IMAGE }}:${{ secrets.TAG }} \
--tag ${{ secrets.DOCKER_USERNAME }}/${{ secrets.DOCKER_IMAGE }}:${{ secrets.TAG }} \
--file Dockerfile .
- name: 🚀 Push Docker image to Docker Hub
run: docker push ${{ secrets.DOCKER_USERNAME }}/${{ secrets.DOCKER_IMAGE }}:${{ secrets.TAG }}