Skip to content

Commit 671b22e

Browse files
authored
Merge pull request coollabsio#2941 from coollabsio/next
v4.0.0-beta.320
2 parents 10b9c4b + 777bff6 commit 671b22e

File tree

141 files changed

+2932
-2614
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

141 files changed

+2932
-2614
lines changed

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ contact_links:
44
url: https://coollabs.io/discord
55
about: Reach out to us on Discord.
66
- name: 🙋‍♂️ Feature Requests
7-
url: https://github.com/coollabsio/coolify/discussions/categories/feature-requests-ideas
7+
url: https://github.com/coollabsio/coolify/discussions/categories/new-features
88
about: All feature requests will be discussed here.

.github/workflows/pr-build.yml

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
name: PR Build (v4)
2+
3+
on:
4+
pull_request:
5+
types:
6+
- opened
7+
branches-ignore: ["main", "v3"]
8+
paths-ignore:
9+
- .github/workflows/coolify-helper.yml
10+
- docker/coolify-helper/Dockerfile
11+
12+
env:
13+
REGISTRY: ghcr.io
14+
IMAGE_NAME: "coollabsio/coolify"
15+
16+
jobs:
17+
amd64:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: actions/checkout@v4
21+
- name: Login to ghcr.io
22+
uses: docker/login-action@v3
23+
with:
24+
registry: ${{ env.REGISTRY }}
25+
username: ${{ github.actor }}
26+
password: ${{ secrets.GITHUB_TOKEN }}
27+
- name: Build image and push to registry
28+
uses: docker/build-push-action@v5
29+
with:
30+
context: .
31+
file: docker/prod/Dockerfile
32+
platforms: linux/amd64
33+
push: true
34+
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.event.number }}
35+
aarch64:
36+
runs-on: [self-hosted, arm64]
37+
permissions:
38+
contents: read
39+
packages: write
40+
steps:
41+
- uses: actions/checkout@v4
42+
- name: Login to ghcr.io
43+
uses: docker/login-action@v3
44+
with:
45+
registry: ${{ env.REGISTRY }}
46+
username: ${{ github.actor }}
47+
password: ${{ secrets.GITHUB_TOKEN }}
48+
- name: Build image and push to registry
49+
uses: docker/build-push-action@v5
50+
with:
51+
context: .
52+
file: docker/prod/Dockerfile
53+
platforms: linux/aarch64
54+
push: true
55+
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.event.number }}-aarch64
56+
merge-manifest:
57+
runs-on: ubuntu-latest
58+
permissions:
59+
contents: read
60+
packages: write
61+
needs: [amd64, aarch64]
62+
steps:
63+
- name: Checkout
64+
uses: actions/checkout@v4
65+
- name: Set up QEMU
66+
uses: docker/setup-qemu-action@v3
67+
- name: Set up Docker Buildx
68+
uses: docker/setup-buildx-action@v3
69+
- name: Login to ghcr.io
70+
uses: docker/login-action@v3
71+
with:
72+
registry: ${{ env.REGISTRY }}
73+
username: ${{ github.actor }}
74+
password: ${{ secrets.GITHUB_TOKEN }}
75+
- name: Create & publish manifest
76+
run: |
77+
docker buildx imagetools create --append ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.event.number }}-aarch64 --tag ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.event.number }}
78+
- uses: sarisia/actions-status-discord@v1
79+
if: always()
80+
with:
81+
webhook: ${{ secrets.DISCORD_WEBHOOK_DEV_RELEASE_CHANNEL }}

app/Actions/Application/StopApplication.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,13 @@ public function handle(Application $application, bool $previewDeployments = fals
3131
} else {
3232
$containers = getCurrentApplicationContainerStatus($server, $application->id, 0);
3333
}
34-
ray($containers);
3534
if ($containers->count() > 0) {
3635
foreach ($containers as $container) {
3736
$containerName = data_get($container, 'Names');
3837
if ($containerName) {
39-
instant_remote_process(
40-
["docker rm -f {$containerName}"],
41-
$server
42-
);
38+
instant_remote_process(command: ["docker stop --time=30 $containerName"], server: $server, throwError: false);
39+
instant_remote_process(command: ["docker rm $containerName"], server: $server, throwError: false);
40+
instant_remote_process(command: ["docker rm -f {$containerName}"], server: $server, throwError: false);
4341
}
4442
}
4543
}

app/Actions/Database/StopDatabase.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,11 @@ public function handle(StandaloneRedis|StandalonePostgresql|StandaloneMongodb|St
2222
if (! $server->isFunctional()) {
2323
return 'Server is not functional';
2424
}
25-
instant_remote_process(
26-
["docker rm -f {$database->uuid}"],
27-
$server
28-
);
25+
26+
instant_remote_process(command: ["docker stop --time=30 $database->uuid"], server: $server, throwError: false);
27+
instant_remote_process(command: ["docker rm $database->uuid"], server: $server, throwError: false);
28+
instant_remote_process(command: ["docker rm -f $database->uuid"], server: $server, throwError: false);
29+
2930
if ($database->is_public) {
3031
StopDatabaseProxy::run($database);
3132
}

0 commit comments

Comments
 (0)