chore: fix colify curl in action
This commit is contained in:
@@ -17,7 +17,7 @@ jobs:
|
|||||||
uses: oven-sh/setup-bun@v2
|
uses: oven-sh/setup-bun@v2
|
||||||
with:
|
with:
|
||||||
bun-version: latest # Or specify a version like "1.3.3"
|
bun-version: latest # Or specify a version like "1.3.3"
|
||||||
|
|
||||||
- run: bun ci
|
- run: bun ci
|
||||||
- run: bun test
|
- run: bun test
|
||||||
|
|
||||||
@@ -32,8 +32,8 @@ jobs:
|
|||||||
- name: Trigger Coolify Staging Deploy
|
- name: Trigger Coolify Staging Deploy
|
||||||
run: |
|
run: |
|
||||||
curl -X POST \
|
curl -X POST \
|
||||||
-H "Authorization: Bearer ${{ secrets.COOLIFY_TOKEN }}" \
|
--header 'Authorization: Bearer ${{ secrets.COOLIFY_TOKEN }}' \
|
||||||
"${{ secrets.COOLIFY_URL }}/api/v1/applications/${{ secrets.COOLIFY_STAGING_APP_ID }}/deploy"
|
"${{ secrets.COOLIFY_URL }}/api/v1/deploy?uuid=${{ secrets.COOLIFY_STAGING_APP_UUID }}&force=true"
|
||||||
|
|
||||||
deploy-prod:
|
deploy-prod:
|
||||||
needs: test
|
needs: test
|
||||||
@@ -42,6 +42,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Trigger Coolify Production Deploy
|
- name: Trigger Coolify Production Deploy
|
||||||
run: |
|
run: |
|
||||||
|
# Deploy using application UUID
|
||||||
curl -X POST \
|
curl -X POST \
|
||||||
-H "Authorization: Bearer ${{ secrets.COOLIFY_TOKEN }}" \
|
--header 'Authorization: Bearer ${{ secrets.COOLIFY_TOKEN }}' \
|
||||||
"${{ secrets.COOLIFY_URL }}/api/v1/applications/${{ secrets.COOLIFY_PROD_APP_ID }}/deploy"
|
"${{ secrets.COOLIFY_URL }}/api/v1/deploy?uuid=${{ secrets.COOLIFY_PROD_APP_UUID }}&force=true"
|
||||||
Reference in New Issue
Block a user