Actually truly really NOW actually for real really truly now actually for real genuinely really fix docker compose in updater
This commit is contained in:
@@ -30,4 +30,4 @@ COPY webhook.php /var/www/html/index.php
|
||||
EXPOSE 80
|
||||
|
||||
# Start Apache server
|
||||
CMD ["apache2-foreground"]
|
||||
CMD ["apache2-foreground"]
|
||||
|
||||
@@ -9,4 +9,4 @@ services:
|
||||
- .env
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
- ${DOCKER_CONFIG_DIR}:${DOCKER_CONFIG_DIR}
|
||||
- ${DOCKER_CONFIG_DIR}:${DOCKER_CONFIG_DIR}
|
||||
|
||||
@@ -63,12 +63,15 @@ if (json_last_error() !== JSON_ERROR_NONE) {
|
||||
exit();
|
||||
}
|
||||
|
||||
// success, log something without error_log
|
||||
error_log('SUCCESS - ' . $decoded['ref']);
|
||||
error_log('SUCCESS');
|
||||
|
||||
chdir($docker_config_dir);
|
||||
|
||||
error_log('Pulling latest changes');
|
||||
exec('git pull');
|
||||
exec('docker compose up -d --build --quiet-pull');
|
||||
|
||||
error_log('Building and starting containers');
|
||||
exec('docker compose --profile autoupdate up -d --build --quiet-pull');
|
||||
|
||||
// send return code and text message
|
||||
http_response_code(200);
|
||||
|
||||
Reference in New Issue
Block a user