Logout from registry after pushing the image

Signed-off-by: Vitaliy Potyarkin <v.potyarkin@yadro.com>
This commit is contained in:
Vitaliy Potyarkin 2024-10-24 17:04:03 +03:00
parent 2c81b0f450
commit e8ca14a77b

View file

@ -16,7 +16,5 @@ $(TAGS):
ifneq (,$(PUSH))
echo $$REGISTRY_PASSWORD | buildah login --username $(REGISTRY_USER) --password-stdin $(REGISTRY)
buildah push --rm $(IMAGE):$@ docker://$(IMAGE):$@
rm $(REGISTRY_AUTH_FILE)
export REGISTRY_AUTH_FILE=$(shell mktemp -u)
buildah logout
endif