1 Commits

Author SHA1 Message Date
CSRBot a5c31971f9 chore(deps): update dependency anchore/syft to v1.45.1
Lint Markdown files / Run markdown linter (pull_request) Failing after 11m46s
Run Golang tests / Run unit tests (stable, ubuntu-latest-amd64) (pull_request) Failing after 11m56s
Run Golang tests / Run unit tests (stable, ubuntu-latest-arm64) (pull_request) Failing after 11m59s
Run Golang tests / Run unit tests (stable, ubuntu-latest-amd64) (push) Failing after 12m6s
Run Golang tests / Run unit tests (stable, ubuntu-latest-arm64) (push) Failing after 12m10s
Lint Golang files / Run golang CI linter (stable, ubuntu-latest-amd64) (pull_request) Failing after 12m13s
Lint Golang files / Run golang CI linter (stable, ubuntu-latest-arm64) (pull_request) Failing after 12m16s
Lint Golang files / Run golang CI linter (stable, ubuntu-latest-amd64) (push) Failing after 12m21s
Lint Golang files / Run golang CI linter (stable, ubuntu-latest-arm64) (push) Failing after 12m25s
2026-06-06 06:06:36 +00:00
+40
View File
@@ -6,6 +6,21 @@ VERSION?=$(shell git describe --abbrev=0)+hash.$(shell git rev-parse --short HEA
DESTDIR?=
PREFIX?=/usr/local
# CONTAINER_RUNTIME
# The CONTAINER_RUNTIME variable will be used to specified the path to a
# container runtime. This is needed to start and run a container image.
CONTAINER_RUNTIME?=$(shell which podman)
# DB_WAIT_IMAGE_REGISTRY_NAME
# Defines the name of the new container to be built using several variables.
DB_WAIT_IMAGE_REGISTRY_NAME:=git.cryptic.systems
DB_WAIT_IMAGE_REGISTRY_USER:=volker.raschek
DB_WAIT_IMAGE_NAMESPACE?=${DB_WAIT_IMAGE_REGISTRY_USER}
DB_WAIT_IMAGE_NAME:=${EXECUTABLE}
DB_WAIT_IMAGE_VERSION?=latest
DB_WAIT_IMAGE_FULLY_QUALIFIED=${DB_WAIT_IMAGE_REGISTRY_NAME}/${DB_WAIT_IMAGE_NAMESPACE}/${DB_WAIT_IMAGE_NAME}:${DB_WAIT_IMAGE_VERSION}
# BIN
# ==============================================================================
db-wait:
@@ -67,6 +82,31 @@ uninstall:
${DESTDIR}${PREFIX}/bin/${EXECUTABLE} \
${DESTDIR}${PREFIX}/share/licenses/${EXECUTABLE}
# BUILD CONTAINER IMAGE
# ==============================================================================
PHONY+=container-image/build
container-image/build:
${CONTAINER_RUNTIME} build \
--build-arg VERSION=${VERSION} \
--file Dockerfile \
--no-cache \
--pull \
--tag ${DB_WAIT_IMAGE_FULLY_QUALIFIED} \
.
# DELETE CONTAINER IMAGE
# ==============================================================================
PHONY:=container-image/delete
container-image/delete:
- ${CONTAINER_RUNTIME} image rm ${DB_WAIT_IMAGE_FULLY_QUALIFIED}
# PUSH CONTAINER IMAGE
# ==============================================================================
PHONY+=container-image/push
container-image/push:
echo ${DB_WAIT_IMAGE_REGISTRY_PASSWORD} | ${CONTAINER_RUNTIME} login ${DB_WAIT_IMAGE_REGISTRY_NAME} --username ${DB_WAIT_IMAGE_REGISTRY_USER} --password-stdin
${CONTAINER_RUNTIME} push ${DB_WAIT_IMAGE_FULLY_QUALIFIED}
# PHONY
# ==============================================================================
# Declare the contents of the PHONY variable as phony. We keep that information