Skip to content

Commit ebd79ad

Browse files
authored
Merge pull request #156 from billilge/deploy/#155
deploy: CD 배포를 CapRover에서 Coolify로 마이그레이션
2 parents c8c4bb1 + aec699e commit ebd79ad

2 files changed

Lines changed: 10 additions & 14 deletions

File tree

‎.github/workflows/ci-cd_dev.yml‎

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,8 @@ jobs:
6060
if: github.event_name == 'push'
6161
runs-on: ubuntu-latest
6262
steps:
63-
- name: Deploy to CapRover
64-
uses: caprover/deploy-from-github@v1.1.2
65-
with:
66-
server: ${{ secrets.CAPROVER_SERVER }}
67-
app: ${{ secrets.CAPROVER_DEV_APP_NAME }}
68-
token: ${{ secrets.CAPROVER_DEV_APP_TOKEN }}
69-
image: ${{ env.DOCKER_IMAGE }}:latest
63+
- name: Trigger Coolify deploy
64+
run: |
65+
curl --fail --show-error --silent --request GET \
66+
"${{ secrets.COOLIFY_URL }}/api/v1/deploy?uuid=${{ secrets.COOLIFY_DEV_RESOURCE_UUID }}&force=true" \
67+
--header "Authorization: Bearer ${{ secrets.COOLIFY_API_TOKEN }}"

‎.github/workflows/ci-cd_prod.yml‎

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,8 @@ jobs:
5959
if: github.event_name == 'push'
6060
runs-on: ubuntu-latest
6161
steps:
62-
- name: Deploy to CapRover
63-
uses: caprover/deploy-from-github@v1.1.2
64-
with:
65-
server: ${{ secrets.CAPROVER_SERVER }}
66-
app: ${{ secrets.CAPROVER_PROD_APP_NAME }}
67-
token: ${{ secrets.CAPROVER_PROD_APP_TOKEN }}
68-
image: ${{ env.DOCKER_IMAGE }}:latest
62+
- name: Trigger Coolify deploy
63+
run: |
64+
curl --fail --show-error --silent --request GET \
65+
"${{ secrets.COOLIFY_URL }}/api/v1/deploy?uuid=${{ secrets.COOLIFY_PROD_RESOURCE_UUID }}&force=true" \
66+
--header "Authorization: Bearer ${{ secrets.COOLIFY_API_TOKEN }}"

0 commit comments

Comments
 (0)