fix: move from docker.io to git.cryptic.systems
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
0db7449748
commit
954deda103
36
Makefile
36
Makefile
@ -2,48 +2,46 @@
|
|||||||
# Only required to install a specifiy version
|
# Only required to install a specifiy version
|
||||||
POSTFIXADMIN_VERSION?=3.3.13
|
POSTFIXADMIN_VERSION?=3.3.13
|
||||||
|
|
||||||
# CONTAINER_RUNTIME
|
# PODMAN_BIN's and tools
|
||||||
# The CONTAINER_RUNTIME variable will be used to specified the path to a
|
PODMAN_BIN?=$(shell which podman)
|
||||||
# container runtime. This is needed to start and run a container image.
|
|
||||||
CONTAINER_RUNTIME?=$(shell which podman)
|
|
||||||
|
|
||||||
# POSTFIXADMIN_IMAGE_REGISTRY_NAME
|
# POSTFIXADMIN_IMAGE
|
||||||
# Defines the name of the new container to be built using several variables.
|
POSTFIXADMIN_IMAGE_REGISTRY_HOST:=git.cryptic.systems
|
||||||
POSTFIXADMIN_IMAGE_REGISTRY_NAME:=docker.io
|
POSTFIXADMIN_IMAGE_REPOSITORY?=volker.raschek/postfixadmin
|
||||||
POSTFIXADMIN_IMAGE_REGISTRY_USER:=volkerraschek
|
|
||||||
|
|
||||||
POSTFIXADMIN_IMAGE_NAMESPACE?=${POSTFIXADMIN_IMAGE_REGISTRY_USER}
|
|
||||||
POSTFIXADMIN_IMAGE_NAME:=postfixadmin
|
|
||||||
POSTFIXADMIN_IMAGE_VERSION?=latest
|
POSTFIXADMIN_IMAGE_VERSION?=latest
|
||||||
POSTFIXADMIN_IMAGE_FULLY_QUALIFIED=${POSTFIXADMIN_IMAGE_REGISTRY_NAME}/${POSTFIXADMIN_IMAGE_NAMESPACE}/${POSTFIXADMIN_IMAGE_NAME}:${POSTFIXADMIN_IMAGE_VERSION}
|
POSTFIXADMIN_IMAGE_FULLY_QUALIFIED=${POSTFIXADMIN_IMAGE_REGISTRY_HOST}/${POSTFIXADMIN_IMAGE_REPOSITORY}:${POSTFIXADMIN_IMAGE_VERSION}
|
||||||
POSTFIXADMIN_IMAGE_UNQUALIFIED=${POSTFIXADMIN_IMAGE_NAMESPACE}/${POSTFIXADMIN_IMAGE_NAME}:${POSTFIXADMIN_IMAGE_VERSION}
|
|
||||||
|
|
||||||
# BUILD CONTAINER IMAGE
|
# BUILD CONTAINER IMAGE
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
PHONY:=container-image/build
|
PHONY:=container-image/build
|
||||||
container-image/build:
|
container-image/build:
|
||||||
${CONTAINER_RUNTIME} build \
|
${PODMAN_BIN} build \
|
||||||
--build-arg POSTFIXADMIN_VERSION=${POSTFIXADMIN_VERSION} \
|
--build-arg POSTFIXADMIN_VERSION=${POSTFIXADMIN_VERSION} \
|
||||||
--file Dockerfile \
|
--file Dockerfile \
|
||||||
--no-cache \
|
--no-cache \
|
||||||
--pull \
|
--pull \
|
||||||
--tag ${POSTFIXADMIN_IMAGE_FULLY_QUALIFIED} \
|
--tag ${POSTFIXADMIN_IMAGE_FULLY_QUALIFIED} \
|
||||||
--tag ${POSTFIXADMIN_IMAGE_UNQUALIFIED} \
|
|
||||||
.
|
.
|
||||||
|
|
||||||
# DELETE CONTAINER IMAGE
|
# DELETE CONTAINER IMAGE
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
PHONY:=container-image/delete
|
PHONY:=container-image/delete
|
||||||
container-image/delete:
|
container-image/delete:
|
||||||
- ${CONTAINER_RUNTIME} image rm ${POSTFIXADMIN_IMAGE_FULLY_QUALIFIED} ${POSTFIXADMIN_IMAGE_UNQUALIFIED}
|
- ${PODMAN_BIN} image rm ${POSTFIXADMIN_IMAGE_FULLY_QUALIFIED}
|
||||||
- ${CONTAINER_RUNTIME} image rm ${PHP_IMAGE_FULL}
|
|
||||||
|
|
||||||
# PUSH CONTAINER IMAGE
|
# PUSH CONTAINER IMAGE
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
PHONY+=container-image/push
|
PHONY+=container-image/push
|
||||||
container-image/push:
|
container-image/push:
|
||||||
echo ${POSTFIXADMIN_IMAGE_REGISTRY_PASSWORD} | ${CONTAINER_RUNTIME} login ${POSTFIXADMIN_IMAGE_REGISTRY_NAME} --username ${POSTFIXADMIN_IMAGE_REGISTRY_USER} --password-stdin
|
echo ${POSTFIXADMIN_IMAGE_REGISTRY_PASSWORD} | ${PODMAN_BIN} login ${POSTFIXADMIN_IMAGE_REGISTRY_NAME} --username ${POSTFIXADMIN_IMAGE_REGISTRY_USER} --password-stdin
|
||||||
${CONTAINER_RUNTIME} push ${POSTFIXADMIN_IMAGE_FULLY_QUALIFIED}
|
${PODMAN_BIN} push ${POSTFIXADMIN_IMAGE_FULLY_QUALIFIED}
|
||||||
|
${PODMAN_BIN} logout ${POSTFIXADMIN_IMAGE_REGISTRY_HOST}
|
||||||
|
|
||||||
|
# PUSH CONTAINER IMAGE TO DOCKER
|
||||||
|
# ==============================================================================
|
||||||
|
PHONY+=container-image/push-to-docker-daemon
|
||||||
|
container-image/push-to-docker-daemon:
|
||||||
|
${PODMAN_BIN} push ${POSTFIXADMIN_IMAGE_FULLY_QUALIFIED} docker-daemon:${POSTFIXADMIN_IMAGE_FULLY_QUALIFIED}
|
||||||
|
|
||||||
# PHONY
|
# PHONY
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
|
Loading…
Reference in New Issue
Block a user