forked from TrueCloudLab/action-env
Logout from registry after pushing the image
Signed-off-by: Vitaliy Potyarkin <v.potyarkin@yadro.com>
This commit is contained in:
parent
2c81b0f450
commit
e8ca14a77b
1 changed files with 1 additions and 3 deletions
4
Makefile
4
Makefile
|
@ -16,7 +16,5 @@ $(TAGS):
|
||||||
ifneq (,$(PUSH))
|
ifneq (,$(PUSH))
|
||||||
echo $$REGISTRY_PASSWORD | buildah login --username $(REGISTRY_USER) --password-stdin $(REGISTRY)
|
echo $$REGISTRY_PASSWORD | buildah login --username $(REGISTRY_USER) --password-stdin $(REGISTRY)
|
||||||
buildah push --rm $(IMAGE):$@ docker://$(IMAGE):$@
|
buildah push --rm $(IMAGE):$@ docker://$(IMAGE):$@
|
||||||
rm $(REGISTRY_AUTH_FILE)
|
buildah logout
|
||||||
|
|
||||||
export REGISTRY_AUTH_FILE=$(shell mktemp -u)
|
|
||||||
endif
|
endif
|
||||||
|
|
Loading…
Reference in a new issue