Skip to content

devops.yml

devops.yml #2

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.shanechellam }}
password: ${{ secrets.shanechellam }}
- run: |
docker build -t registry.hub.docker.com/shanechellam/shaastra .
docker push registry.hub.docker.com/shanechellam/shaastra