From ea8f4e5514c272f5546c0057ead2b75e948a3827 Mon Sep 17 00:00:00 2001 From: Harsh Mahadev Duche Date: Thu, 1 Aug 2024 14:14:09 +0530 Subject: [PATCH] added deploy workflow --- .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..b76e7b3 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,30 @@ +name: Build and Deploy to Docker Hub + +on: + push: + branches: + - main + +jobs: + build-and-push: + runs-on: ubuntu-latest + steps: + - name: Checkout repo + uses: actions/checkout@v2 + + - name: Login 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: ./Dockerfile + push: true + tags: ducheharsh/thewallet:latest + + - name: Verify Pushed Image + run: docker pull ducheharsh/thewallet:latest