build: add makefile, dockerfile, ci and development stack
- build: add makefile, dockerfile, ci and development stack - feat(config): add environment configuration and logger - feat(server): add server lifecycle with health and version routes - feat(db): add connection, contract check, migrations and stores - feat(cli): add command dispatch and user management - test(db): add integration tests against mysql
This commit is contained in:
1 parent
45d1e307c6
commit
7089a6f408
46 files changed
+8456
No files matched your search
Executable
+29
@@ -0,0 +1,29 @@
|
||||
#!/usr/bin/env bash
|
||||
# SPDX-License-Identifier: GPL-2.0-or-later
|
||||
# Copyright (C) 2026 Bryan Joshua Pedini
|
||||
|
||||
if [ -z "${APP_VERSION}" ] || [ "${APP_VERSION}" = "latest" ]; then
|
||||
read -p "Version [latest]: " VERSIONINPUT
|
||||
if [ -z "${VERSIONINPUT}" ]; then
|
||||
APP_VERSION="latest"
|
||||
else
|
||||
APP_VERSION=${VERSIONINPUT}
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ -z "${DOCKERPUSH}" ]; then
|
||||
read -p "Docker push? [n]: " DOCKERPUSH
|
||||
if [ -z "${DOCKERPUSH}" ]; then
|
||||
DOCKERPUSH=n
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ -n "${VERSIONINPUT}" ]; then
|
||||
git tag "${APP_VERSION}"
|
||||
fi
|
||||
|
||||
export APP_VERSION
|
||||
make docker
|
||||
if [ "${DOCKERPUSH}" = "y" ]; then
|
||||
make dockerpush
|
||||
fi
|
||||
Reference in new issue
Block a user