diff --git a/.github/workflows/ci-cd_dev.yml b/.github/workflows/ci-cd_dev.yml index c7b1cc3..89cf968 100644 --- a/.github/workflows/ci-cd_dev.yml +++ b/.github/workflows/ci-cd_dev.yml @@ -60,10 +60,8 @@ jobs: if: github.event_name == 'push' runs-on: ubuntu-latest steps: - - name: Deploy to CapRover - uses: caprover/deploy-from-github@v1.1.2 - with: - server: ${{ secrets.CAPROVER_SERVER }} - app: ${{ secrets.CAPROVER_DEV_APP_NAME }} - token: ${{ secrets.CAPROVER_DEV_APP_TOKEN }} - image: ${{ env.DOCKER_IMAGE }}:latest + - name: Trigger Coolify deploy + run: | + curl --fail --show-error --silent --request GET \ + "${{ secrets.COOLIFY_URL }}/api/v1/deploy?uuid=${{ secrets.COOLIFY_DEV_RESOURCE_UUID }}&force=true" \ + --header "Authorization: Bearer ${{ secrets.COOLIFY_API_TOKEN }}" diff --git a/.github/workflows/ci-cd_prod.yml b/.github/workflows/ci-cd_prod.yml index c0b2e27..e04cd81 100644 --- a/.github/workflows/ci-cd_prod.yml +++ b/.github/workflows/ci-cd_prod.yml @@ -59,10 +59,8 @@ jobs: if: github.event_name == 'push' runs-on: ubuntu-latest steps: - - name: Deploy to CapRover - uses: caprover/deploy-from-github@v1.1.2 - with: - server: ${{ secrets.CAPROVER_SERVER }} - app: ${{ secrets.CAPROVER_PROD_APP_NAME }} - token: ${{ secrets.CAPROVER_PROD_APP_TOKEN }} - image: ${{ env.DOCKER_IMAGE }}:latest + - name: Trigger Coolify deploy + run: | + curl --fail --show-error --silent --request GET \ + "${{ secrets.COOLIFY_URL }}/api/v1/deploy?uuid=${{ secrets.COOLIFY_PROD_RESOURCE_UUID }}&force=true" \ + --header "Authorization: Bearer ${{ secrets.COOLIFY_API_TOKEN }}"