- 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
30 lines
613 B
Bash
Executable File
30 lines
613 B
Bash
Executable File
#!/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
|