Skip to content

Commit aec699e

Browse files
tnals0924claude
andcommitted
deploy: CD 배포를 CapRover에서 Coolify로 마이그레이션 - #155
- build-docker-image 잡(Docker Hub, latest 태그)은 그대로 유지 - deploy 잡의 CapRover 액션을 Coolify API(GET /api/v1/deploy?uuid=...&force=true) 호출로 교체 - prod/dev 각각 COOLIFY_PROD_RESOURCE_UUID / COOLIFY_DEV_RESOURCE_UUID 사용 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BwEtkafDnUZh8TeKrrzuEo
1 parent c8c4bb1 commit aec699e

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)