diff --git a/.github/workflows/devops.yml b/.github/workflows/devops.yml new file mode 100644 index 0000000..27a6436 --- /dev/null +++ b/.github/workflows/devops.yml @@ -0,0 +1,19 @@ +name: DevOps +on: + push: + branches: + - master +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