You've already forked ansible-docker
feat(rockylinux-9): add support
This commit is contained in:
33
Makefile
33
Makefile
@ -21,6 +21,15 @@ ANSIBLE_RL8_IMAGE_VERSION?=latest
|
||||
ANSIBLE_RL8_IMAGE_VERSION_SUFFIX=rockylinux-8
|
||||
ANSIBLE_RL8_IMAGE_FULLY_QUALIFIED=${ANSIBLE_RL8_IMAGE_REGISTRY_HOST}/${ANSIBLE_RL8_IMAGE_NAMESPACE}/${ANSIBLE_RL8_IMAGE_REPOSITORY}:${ANSIBLE_RL8_IMAGE_VERSION}-${ANSIBLE_RL8_IMAGE_VERSION_SUFFIX}
|
||||
|
||||
# RockyLinux9
|
||||
ANSIBLE_RL9_IMAGE_REGISTRY_HOST?=git.cryptic.systems
|
||||
ANSIBLE_RL9_IMAGE_REGISTRY_USER?=volker.raschek
|
||||
ANSIBLE_RL9_IMAGE_NAMESPACE?=${ANSIBLE_RL8_IMAGE_REGISTRY_USER}
|
||||
ANSIBLE_RL9_IMAGE_REPOSITORY:=ansible
|
||||
ANSIBLE_RL9_IMAGE_VERSION?=latest
|
||||
ANSIBLE_RL9_IMAGE_VERSION_SUFFIX=rockylinux-9
|
||||
ANSIBLE_RL9_IMAGE_FULLY_QUALIFIED=${ANSIBLE_RL9_IMAGE_REGISTRY_HOST}/${ANSIBLE_RL9_IMAGE_NAMESPACE}/${ANSIBLE_RL9_IMAGE_REPOSITORY}:${ANSIBLE_RL9_IMAGE_VERSION}-${ANSIBLE_RL9_IMAGE_VERSION_SUFFIX}
|
||||
|
||||
# BUILD ANSIBLE ARCHLINUX CONTAINER IMAGE
|
||||
# ==============================================================================
|
||||
PHONY:=container-image/build/arch-linux
|
||||
@ -69,6 +78,30 @@ container-image/push/rocky-linux-8:
|
||||
echo ${ANSIBLE_ARCH_IMAGE_REGISTRY_PASSWORD} | ${CONTAINER_RUNTIME} login ${ANSIBLE_ARCH_IMAGE_REGISTRY_HOST} --username ${ANSIBLE_ARCH_IMAGE_REGISTRY_USER} --password-stdin
|
||||
${CONTAINER_RUNTIME} push ${ANSIBLE_ARCH_IMAGE_FULLY_QUALIFIED}
|
||||
|
||||
# BUILD ANSIBLE RL9 CONTAINER IMAGE
|
||||
# ==============================================================================
|
||||
PHONY:=container-image/build/rocky-linux-9
|
||||
container-image/build/rocky-linux-9:
|
||||
${CONTAINER_RUNTIME} build \
|
||||
--file Dockerfile.rockylinux9 \
|
||||
--no-cache \
|
||||
--pull \
|
||||
--tag ${ANSIBLE_RL9_IMAGE_FULLY_QUALIFIED} \
|
||||
.
|
||||
|
||||
# DELETE ANSIBLE RL9 CONTAINER IMAGE
|
||||
# ==============================================================================
|
||||
PHONY:=container-image/delete/rocky-linux-9
|
||||
container-image/delete/rocky-linux-9:
|
||||
- ${CONTAINER_RUNTIME} image rm ${ANSIBLE_RL9_IMAGE_FULLY_QUALIFIED}
|
||||
|
||||
# PUSH ANSIBLE RL9 CONTAINER IMAGE
|
||||
# ==============================================================================
|
||||
PHONY+=container-image/push/rocky-linux-9
|
||||
container-image/push/rocky-linux-9:
|
||||
echo ${ANSIBLE_ARCH_IMAGE_REGISTRY_PASSWORD} | ${CONTAINER_RUNTIME} login ${ANSIBLE_ARCH_IMAGE_REGISTRY_HOST} --username ${ANSIBLE_ARCH_IMAGE_REGISTRY_USER} --password-stdin
|
||||
${CONTAINER_RUNTIME} push ${ANSIBLE_ARCH_IMAGE_FULLY_QUALIFIED}
|
||||
|
||||
# PHONY
|
||||
# ==============================================================================
|
||||
# Declare the contents of the PHONY variable as phony. We keep that information
|
||||
|
Reference in New Issue
Block a user