fix(Makefile): logout correctly
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Markus Pesch 2024-03-02 14:42:46 +01:00
parent 71d28ec0ab
commit 95374d36bd
Signed by: volker.raschek
GPG Key ID: 852BCC170D81A982

View File

@ -23,7 +23,6 @@ container-image/build:
PHONY:=container-image/delete PHONY:=container-image/delete
container-image/delete: container-image/delete:
- ${PODMAN_BIN} image rm ${FETCHMAIL_IMAGE_FULLY_QUALIFIED} - ${PODMAN_BIN} image rm ${FETCHMAIL_IMAGE_FULLY_QUALIFIED}
- ${PODMAN_BIN} image rm ${BASE_IMAGE_FULL}
# PUSH CONTAINER IMAGE # PUSH CONTAINER IMAGE
# ============================================================================== # ==============================================================================
@ -31,7 +30,7 @@ PHONY+=container-image/push
container-image/push: container-image/push:
echo ${FETCHMAIL_IMAGE_REGISTRY_PASSWORD} | ${PODMAN_BIN} login ${FETCHMAIL_IMAGE_REGISTRY_HOST} --username ${FETCHMAIL_IMAGE_REGISTRY_USER} --password-stdin echo ${FETCHMAIL_IMAGE_REGISTRY_PASSWORD} | ${PODMAN_BIN} login ${FETCHMAIL_IMAGE_REGISTRY_HOST} --username ${FETCHMAIL_IMAGE_REGISTRY_USER} --password-stdin
${PODMAN_BIN} push ${FETCHMAIL_IMAGE_FULLY_QUALIFIED} ${PODMAN_BIN} push ${FETCHMAIL_IMAGE_FULLY_QUALIFIED}
${PODMAN_BIN} logout ${FETCHMAIL_IMAGE_FULLY_QUALIFIED} ${PODMAN_BIN} logout ${FETCHMAIL_IMAGE_REGISTRY_HOST}
# PUSH CONTAINER IMAGE TO DOCKER # PUSH CONTAINER IMAGE TO DOCKER
# ============================================================================== # ==============================================================================
@ -43,4 +42,4 @@ container-image/push-to-docker-daemon:
# ============================================================================== # ==============================================================================
# Declare the contents of the PHONY variable as phony. We keep that information # Declare the contents of the PHONY variable as phony. We keep that information
# in a variable so we can use it in if_changed. # in a variable so we can use it in if_changed.
.PHONY: ${PHONY} .PHONY: ${PHONY}