Compare commits

..

1 Commits

Author SHA1 Message Date
goc_marek d52b203eb7 add pipline
Build docker image and push to test / Build binaries, Build docker image, Apply on test (pull_request) Successful in 1m12s
2026-04-26 21:03:59 +02:00
2 changed files with 26 additions and 60 deletions
+1 -8
View File
@@ -23,14 +23,7 @@ jobs:
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Generate version - name: Generate version
run: | run: echo "VERSION=$(date +%Y%d%m_%H%M)" >> $GITHUB_ENV
VERSION=$(date +%Y%d%m_%H%M)
GIT_SHA=$(git rev-parse --short HEAD)
echo "VERSION=$VERSION" >> $GITHUB_ENV
echo "GIT_SHA=$GIT_SHA" >> $GITHUB_ENV
echo "Version: $VERSION Commit:$GIT_SHA" > public/VERSION
- name: Login to registry - name: Login to registry
run: | run: |
+25 -52
View File
@@ -61,59 +61,32 @@
</div> </div>
</div> </div>
<!-- API documentation --> <!-- API documentation -->
<div class="card mt-3"> <div class="card mt-3">
<div class="card-body d-flex align-items-center justify-content-between"> <div class="card-body d-flex align-items-center justify-content-between">
<div> <div>
<h6 class="fw-semibold mb-1"><i class="bi bi-book me-1"></i>API Documentation</h6> <h6 class="fw-semibold mb-1"><i class="bi bi-book me-1"></i>API Documentation</h6>
<p class="text-muted small mb-0">OpenAPI reference for the Check List backend endpoints.</p> <p class="text-muted small mb-0">OpenAPI reference for the Check List backend endpoints.</p>
</div> </div>
<a href="/api-docs" target="_blank" class="btn btn-outline-secondary btn-sm">View docs</a> <a href="/api-docs" target="_blank" class="btn btn-outline-secondary btn-sm">View docs</a>
</div> </div>
</div> </div>
<!-- Version info -->
<div class="card mt-3">
<div class="card-body">
<div id="versionInfo" class="text-center text-muted small">
Loading version...
</div>
</div>
</div>
</main> </main>
<script> <script>
(function() { (function() {
// Cleanup button // Cleanup button
document.getElementById('cleanupBtn').addEventListener('click', () => { document.getElementById('cleanupBtn').addEventListener('click', () => {
if (!confirm('This will remove ALL application data (cached data, settings). Continue?')) return; if (!confirm('This will remove ALL application data (cached data, settings). Continue?')) return;
localStorage.removeItem('user_language'); localStorage.removeItem('user_language');
// Clear IndexedDB // Clear IndexedDB
indexedDB.databases().then(dbs => { indexedDB.databases().then(dbs => {
dbs.forEach(db => indexedDB.deleteDatabase(db.name)); dbs.forEach(db => indexedDB.deleteDatabase(db.name));
}).catch(() => {}); }).catch(() => {});
alert('All data cleared. Page will reload.'); alert('All data cleared. Page will reload.');
location.reload(); location.reload();
}); });
})(); })();
</script>
// Fetch and display version
fetch('/VERSION')
.then(response => {
if (!response.ok) {
throw new Error('Network response was not ok');
}
return response.text();
})
.then(versionText => {
const versionInfo = document.getElementById('versionInfo');
versionInfo.textContent = versionText.trim() || 'Version not available';
})
.catch(error => {
console.error('Could not load version:', error);
const versionInfo = document.getElementById('versionInfo');
versionInfo.textContent = 'Version not available';
});
</script>
</body> </body>
</html> </html>