Add update script, enhance admin features, and improve styles
- Created a PowerShell script (update.ps1) for automating the process of pulling the latest repository changes, stopping, building, and starting the Docker Compose stack. - Updated App.jsx to include new admin sections for alarms and integrations, added state management for runner jobs, and enhanced permission checks. - Extended the API module (api.js) with new endpoints for managing integrations and runner jobs. - Improved CSS styles for a more compact and responsive layout in the admin interface, focusing on source and datapoint cards.
This commit is contained in:
+33
@@ -0,0 +1,33 @@
|
||||
Write-Host "Pulling latest Repo from Gittea..." -ForegroundColor Blue
|
||||
git pull
|
||||
|
||||
if ($LASTEXITCODE -ne 0) {
|
||||
Write-Host "git pull failed." -ForegroundColor Red
|
||||
exit $LASTEXITCODE
|
||||
}
|
||||
|
||||
Write-Host "Stopping Docker Compose stack..." -ForegroundColor Yellow
|
||||
docker compose down
|
||||
|
||||
if ($LASTEXITCODE -ne 0) {
|
||||
Write-Host "docker compose down failed." -ForegroundColor Red
|
||||
exit $LASTEXITCODE
|
||||
}
|
||||
|
||||
Write-Host "Building Docker Compose stack without cache..." -ForegroundColor Yellow
|
||||
docker compose build --no-cache
|
||||
|
||||
if ($LASTEXITCODE -ne 0) {
|
||||
Write-Host "docker compose build failed." -ForegroundColor Red
|
||||
exit $LASTEXITCODE
|
||||
}
|
||||
|
||||
Write-Host "Starting Docker Compose stack..." -ForegroundColor Yellow
|
||||
docker compose up -d --force-recreate
|
||||
|
||||
if ($LASTEXITCODE -ne 0) {
|
||||
Write-Host "docker compose up failed." -ForegroundColor Red
|
||||
exit $LASTEXITCODE
|
||||
}
|
||||
|
||||
Write-Host "Docker Compose stack successfully rebuilt and started." -ForegroundColor Green
|
||||
Reference in New Issue
Block a user