wip
This commit is contained in:
parent
91ba7a5704
commit
d1b266a361
2
.github/workflows/coolify-builder.yml
vendored
2
.github/workflows/coolify-builder.yml
vendored
@ -19,7 +19,7 @@ jobs:
|
|||||||
registry: ${{ env.REGISTRY }}
|
registry: ${{ env.REGISTRY }}
|
||||||
username: ${{ github.actor }}
|
username: ${{ github.actor }}
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
- name: Build imaged and push to registry
|
- name: Build image and push to registry
|
||||||
uses: docker/build-push-action@v3
|
uses: docker/build-push-action@v3
|
||||||
with:
|
with:
|
||||||
no-cache: true
|
no-cache: true
|
||||||
|
2
.github/workflows/production-build.yml
vendored
2
.github/workflows/production-build.yml
vendored
@ -19,7 +19,7 @@ jobs:
|
|||||||
registry: ${{ env.REGISTRY }}
|
registry: ${{ env.REGISTRY }}
|
||||||
username: ${{ github.actor }}
|
username: ${{ github.actor }}
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
- name: Build imaged and push to registry
|
- name: Build image and push to registry
|
||||||
uses: docker/build-push-action@v3
|
uses: docker/build-push-action@v3
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
|
@ -128,7 +128,7 @@ if (!function_exists('runRemoteCommandSync')) {
|
|||||||
$exitCode = $process->exitCode();
|
$exitCode = $process->exitCode();
|
||||||
if ($exitCode !== 0) {
|
if ($exitCode !== 0) {
|
||||||
Log::error($output);
|
Log::error($output);
|
||||||
throw new \RuntimeException('There was an error running the command.');
|
// throw new \RuntimeException('There was an error running the command.');
|
||||||
}
|
}
|
||||||
return $output;
|
return $output;
|
||||||
}
|
}
|
||||||
|
@ -38,8 +38,8 @@ echo ".env.example downloaded successfully"
|
|||||||
# Copy .env.example if .env does not exist
|
# Copy .env.example if .env does not exist
|
||||||
if [ ! -f /data/coolify/source/.env ]; then
|
if [ ! -f /data/coolify/source/.env ]; then
|
||||||
cp /data/coolify/source/.env.example /data/coolify/source/.env
|
cp /data/coolify/source/.env.example /data/coolify/source/.env
|
||||||
sed -i 's/APP_ENV=.*/APP_ENV=local/g' /data/coolify/source/.env
|
sed -i 's/APP_ENV=.*/APP_ENV=production/g' /data/coolify/source/.env
|
||||||
sed -i 's/APP_DEBUG=.*/APP_DEBUG=true/g' /data/coolify/source/.env
|
sed -i 's/APP_DEBUG=.*/APP_DEBUG=false/g' /data/coolify/source/.env
|
||||||
sed -i "s|APP_KEY=.*|APP_KEY=base64:$(openssl rand -base64 32)|g" /data/coolify/source/.env
|
sed -i "s|APP_KEY=.*|APP_KEY=base64:$(openssl rand -base64 32)|g" /data/coolify/source/.env
|
||||||
sed -i "s|DB_PASSWORD=.*|DB_PASSWORD=$(openssl rand -base64 32)|g" /data/coolify/source/.env
|
sed -i "s|DB_PASSWORD=.*|DB_PASSWORD=$(openssl rand -base64 32)|g" /data/coolify/source/.env
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user