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}} + + +