Skip to content

devops.yml

devops.yml #3

Workflow file for this run

name: DevOps
on:
push:
branches:
- main
jobs:
docker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
registry: registry.hub.docker.com
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- run: |
docker build -t registry.hub.docker.com/shanechellam/shaastra .
docker push registry.hub.docker.com/shanechellam/shaastra