Skip to content

Commit 6a03bb3

Browse files
committed
chore(versions): update coolify versions to v4.0.0-beta.389 and add helper version retrieval script
1 parent 168618f commit 6a03bb3

File tree

5 files changed

+16
-5
lines changed

5 files changed

+16
-5
lines changed

.github/workflows/coolify-helper-next.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
- name: Get Version
3939
id: version
4040
run: |
41-
echo "VERSION=$(docker run --rm -v "$(pwd):/app" -w /app ghcr.io/jqlang/jq:latest '.coolify.helper.version' versions.json)"|xargs >> $GITHUB_OUTPUT
41+
echo "VERSION=$(docker run --rm -v "$(pwd):/app" -w /app php:8.2-alpine3.16 php bootstrap/getHelperVersion.php)"|xargs >> $GITHUB_OUTPUT
4242
4343
- name: Build and Push Image
4444
uses: docker/build-push-action@v6

.github/workflows/coolify-helper.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
- name: Get Version
3939
id: version
4040
run: |
41-
echo "VERSION=$(docker run --rm -v "$(pwd):/app" -w /app ghcr.io/jqlang/jq:latest '.coolify.helper.version' versions.json)"|xargs >> $GITHUB_OUTPUT
41+
echo "VERSION=$(docker run --rm -v "$(pwd):/app" -w /app php:8.2-alpine3.16 php bootstrap/getHelperVersion.php)"|xargs >> $GITHUB_OUTPUT
4242
4343
- name: Build and Push Image
4444
uses: docker/build-push-action@v6

bootstrap/getHelperVersion.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?php
2+
3+
// To prevent github actions from failing
4+
function env()
5+
{
6+
return null;
7+
}
8+
9+
$version = include 'config/constants.php';
10+
echo $version['coolify']['helper_version'] ?: 'unknown';

config/constants.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22

33
return [
44
'coolify' => [
5-
'version' => '4.0.0-beta.387',
5+
'version' => '4.0.0-beta.388',
6+
'helper_version' => '1.0.5',
67
'self_hosted' => env('SELF_HOSTED', true),
78
'autoupdate' => env('AUTOUPDATE'),
89
'base_config_path' => env('BASE_CONFIG_PATH', '/data/coolify'),

versions.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"coolify": {
33
"v4": {
4-
"version": "4.0.0-beta.387"
4+
"version": "4.0.0-beta.388"
55
},
66
"nightly": {
7-
"version": "4.0.0-beta.388"
7+
"version": "4.0.0-beta.389"
88
},
99
"helper": {
1010
"version": "1.0.5"

0 commit comments

Comments
 (0)