From 8064d5453dd994750006a2e9cca377c7c5ad39fb Mon Sep 17 00:00:00 2001 From: Prashant Kumar Date: Mon, 30 Sep 2024 10:42:41 +0530 Subject: [PATCH] added deploing to docker --- .github/workflows/deploy.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..37c0b17 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,30 @@ +name: Build and Deploy to Docker Hub + +on: + push: + branches: + - master + +jobs: + build-and-push: + runs-on: ubuntu-latest + steps: + - name: Check Out Repo + uses: actions/checkout@v2 + + - name: Log in to Docker Hub + uses: docker/login-action@v1 + with: + username: ${{secrets.DOCKER_USERNAME}} + password: ${{secrets.DOCKER_PASSWORD}} + + - name: Build and PUSH Docker image + uses: docker/build-push-action@v2 + with: + context: . + file: ./docker/Dockerfile.user + push: true + tags: prashantflick/user-paytm:latest + + # - name: Verify Pushed Image + # run: docker pull prashantflick/user-paytm:latest \ No newline at end of file