Skip to content

Commit bbdf7b9

Browse files
committed
ci: coolify webhook deployment
1 parent db7b2fe commit bbdf7b9

3 files changed

Lines changed: 31 additions & 3 deletions

File tree

.github/workflows/build-and-push.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,21 @@ on:
55
branches:
66
- 'coolify'
77
paths:
8-
- "package.json"
9-
- "package-lock.json"
8+
- package.json
9+
- package-lock.json
1010
- backend/**
1111
- dashboard/**
1212
- shared/**
1313
- Dockerfile
14+
- docker-compose.standalone.yml
1415
- .github/workflows/**
1516

1617
jobs:
1718
docker:
1819
runs-on: ubuntu-latest
20+
env:
21+
COOLIFY_WEBHOOK: ${{ secrets.COOLIFY_WEBHOOK }}
22+
COOLIFY_SECRET: ${{ secrets.COOLIFY_SECRET }}
1923
steps:
2024
- name: Login to GitHub Container Registry
2125
uses: docker/login-action@v3
@@ -50,3 +54,10 @@ jobs:
5054
cache-to: type=gha,mode=max
5155
tags: ${{ steps.meta.outputs.tags }}
5256
labels: ${{ steps.meta.outputs.labels }}
57+
annotations: ${{ steps.meta.outputs.annotations }}
58+
59+
- name: Deploy to Coolify
60+
if: env.COOLIFY_WEBHOOK != '' && env.COOLIFY_SECRET != ''
61+
run: |
62+
curl --request GET "$COOLIFY_WEBHOOK" --header "Authorization: Bearer $COOLIFY_SECRET"
63+
shell: bash

.github/workflows/codequality.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
name: Code quality checks
22

3-
on: [push, pull_request]
3+
on:
4+
push:
5+
paths:
6+
- backend/**
7+
- dashboard/**
8+
- shared/**
9+
- config-checker/**
10+
- package.json
11+
12+
pull_request:
413

514
jobs:
615
build:

docker-compose.standalone.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ services:
3535
image: ghcr.io/rubyowo/zeppelin:coolify
3636
# Pull new image every deployment
3737
pull_policy: always
38+
# Pull the x86_64 image (for now)
39+
platform: linux/amd64
3840
depends_on:
3941
mysql:
4042
condition: service_healthy
@@ -56,6 +58,8 @@ services:
5658
image: ghcr.io/rubyowo/zeppelin:coolify
5759
# Pull new image every deployment
5860
pull_policy: always
61+
# Pull the x86_64 image (for now)
62+
platform: linux/amd64
5963
depends_on:
6064
migrate:
6165
condition: service_completed_successfully
@@ -70,6 +74,8 @@ services:
7074
image: ghcr.io/rubyowo/zeppelin:coolify
7175
# Pull new image every deployment
7276
pull_policy: always
77+
# Pull the x86_64 image (for now)
78+
platform: linux/amd64
7379
depends_on:
7480
migrate:
7581
condition: service_completed_successfully
@@ -84,6 +90,8 @@ services:
8490
image: ghcr.io/rubyowo/zeppelin:coolify
8591
# Pull new image every deployment
8692
pull_policy: always
93+
# Pull the x86_64 image (for now)
94+
platform: linux/amd64
8795
depends_on:
8896
migrate:
8997
condition: service_completed_successfully

0 commit comments

Comments
 (0)