diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..9b59f61 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,18 @@ + +name: Deploy + +on: + push: + branches: [ "main" ] + +jobs: + deploy: + + runs-on: ubuntu-latest + + + steps: + - uses: actions/checkout@v4 + - run: docker build . -t harishneel/next-js-app + - echo "${{secrets.DOCKERHUB_PASSWORD}}" | docker login -u ${{secrets.DOCKERHUB_USERNAME}} --password-stdin + - run: docker push harishneel/next-js-app:latest \ No newline at end of file