mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-13 16:14:42 +00:00
wip
This commit is contained in:
1 parent
0aa91b977d
commit
b0f062ff0c
3 files changed
+2
-56
No files matched your search
@@ -67,10 +67,10 @@ class DeployApplication extends Component
|
||||
// Export git commit to a file
|
||||
$this->execute_in_builder("cd {$workdir} && git rev-parse HEAD > {$workdir}/.git-commit");
|
||||
|
||||
// Set TAG in docker-compose.yml
|
||||
// Create docker-compose.yml
|
||||
$this->execute_in_builder("echo '{$docker_compose_base64}' | base64 -d > {$workdir}/docker-compose.yml");
|
||||
// Set TAG in docker-compose.yml
|
||||
$this->execute_in_builder("sed -i \"s/TAG/$(cat {$workdir}/.git-commit)/g\" {$workdir}/docker-compose.yml");
|
||||
$this->execute_in_builder("cat {$workdir}/docker-compose.yml");
|
||||
|
||||
if (str_starts_with($application->base_image, 'apache') || str_starts_with($application->base_image, 'nginx')) {
|
||||
// @TODO: Add static site builds
|
||||
|
||||
Reference in new issue
Block a user