Debug REGISTRY_PASSWORD without revealing it

Signed-off-by: Vitaliy Potyarkin <v.potyarkin@yadro.com>
This commit is contained in:
Vitaliy Potyarkin 2024-10-24 17:49:43 +03:00
parent e128ea6fdd
commit ab35bf6f37
2 changed files with 3 additions and 2 deletions

View file

@ -44,4 +44,4 @@ jobs:
(github.event_name == 'workflow_dispatch' ||
(steps.changed.outputs.any_changed == 'true' && github.event_name == 'push'))
env:
REGISTRY_PASSWORD: ${secrets.REGISTRY_PASSWORD}
REGISTRY_PASSWORD: ${{secrets.REGISTRY_PASSWORD}}

View file

@ -16,6 +16,7 @@ $(TAGS):
PUSH=$(foreach tag,$(TAGS),push-$(tag))
$(PUSH):
echo $$REGISTRY_PASSWORD | buildah login --username $(REGISTRY_USER) --password-stdin $(REGISTRY)
echo -n "$$REGISTRY_PASSWORD" | wc
echo "$$REGISTRY_PASSWORD" | buildah login --username $(REGISTRY_USER) --password-stdin $(REGISTRY)
buildah push --rm $(IMAGE):$@ docker://$(IMAGE):$@
buildah logout