raid session #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build on docker hub and deploy to server | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout code | |
uses: actions/checkout@v2 | |
- name: set up docker buildx | |
uses: docker/setup-buildx-action@v1 | |
- name: log in to docker hub | |
uses: docker/login-action@v1 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: build and push docker image for backend | |
uses: docker/build-push-action@v2 | |
with: | |
context: ./ | |
push: true | |
dockerfile: ./Dockerfile | |
tags: rohansingh9001/mlops-raid:latest |