From 884806df28446dc4bdf76ba2097fb6224affb719 Mon Sep 17 00:00:00 2001 From: abumahid Date: Tue, 16 Jun 2026 00:37:09 +0600 Subject: [PATCH] added cicd --- .github/workflows/deploy.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 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..47ddc96 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,35 @@ +name: deploy to render + +on: + push: + branches: + - main + +jobs: + deploy: + runs-on: ubuntu-latest + + steps: + - name: checking vps + uses: actions/checkout@v4 + + - name: Login to docker + uses: docker/login-action@v3 + with: + username: ${{secrets.DOCKER_USERNAME}} + password: ${{secrets.DOCKER_PASSWORD}} + + - name: Build Image + run: | + docker build -t ${{secrets.DOCKER_USERNAME}}/vite_test:latest . + + - name: Push image + run: | + docker push ${{secrets.DOCKER_USERNAME}}/vite_test:latest + + - name: Render deploy + run: | + curl -X POST ${{secrets.RENDER_WEBHOOK_URL}} + + +