chore: add project scaffolding and build tooling
Go module, makefile (build, test, docker, e2e targets), version embedding, initialize script, vars template, ignores and the project plan.
This commit is contained in:
1 parent
1b33d094cd
commit
a02eef13a7
9 files changed
+1081
No files matched your search
Executable
+33
@@ -0,0 +1,33 @@
|
||||
#!/usr/bin/env bash
|
||||
# SPDX-License-Identifier: GPL-2.0-or-later
|
||||
# Copyright (C) 2026 Bryan Joshua Pedini
|
||||
|
||||
if [ -z "${APP_VERSION}" ]; then
|
||||
read -p "Version [latest]: " VERSIONINPUT
|
||||
if [ -z "${VERSIONINPUT}" ]; then
|
||||
APP_VERSION="latest"
|
||||
else
|
||||
APP_VERSION=${VERSIONINPUT}
|
||||
fi
|
||||
fi
|
||||
|
||||
# Get docker push option from user
|
||||
if [ -z "${DOCKERPUSH}" ]; then
|
||||
read -p "Docker push? [n]: " DOCKERPUSH
|
||||
if [ -z "${DOCKERPUSH}" ]; then
|
||||
DOCKERPUSH=n
|
||||
fi
|
||||
fi
|
||||
|
||||
# Create version tag (if provided)
|
||||
if [ ! -z "${VERSIONINPUT}" ]; then
|
||||
git tag "${APP_VERSION}"
|
||||
fi
|
||||
|
||||
# Build the app
|
||||
export APP_VERSION
|
||||
make docker
|
||||
# If wanted, push the docker image
|
||||
if [ "${DOCKERPUSH}" = "y" ]; then
|
||||
make dockerpush
|
||||
fi
|
||||
Reference in new issue
Block a user