Added new step on Github actions to trigger deployment on Coolify

This commit is contained in:
ShadowArcanist
2025-01-22 09:01:11 +05:30
parent d153b0318c
commit 85183c7525
2 changed files with 10 additions and 2 deletions
+10 -2
View File
@@ -1,4 +1,4 @@
name: Build and Push Docker Image
name: Production Deployment
on:
push:
@@ -31,7 +31,7 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
# Step 4: Build and push the Docker image for ARM Linux
# Step 4: Build and push the Docker image for ARM Linux (Host server is ARM)
- name: Build and Push Docker Image
uses: docker/build-push-action@v4
with:
@@ -40,3 +40,11 @@ jobs:
tags: |
ghcr.io/shadowarcanist/coolify-new-docs:latest
platforms: linux/arm64
# Step 5: Tell Coolify to deploy the new image
- name: Trigger Coolify Deployment
if: success()
run: |
curl -X GET "${{ secrets.COOLIFY_API_URL }}" \
-H "Authorization: Bearer ${{ secrets.COOLIFY_API_TOKEN }}" \
-H "Content-Type: application/json"