From ab35bf6f378b2c7e41ad19a41da2815a2e06547a Mon Sep 17 00:00:00 2001 From: Vitaliy Potyarkin Date: Thu, 24 Oct 2024 17:49:43 +0300 Subject: [PATCH] Debug REGISTRY_PASSWORD without revealing it Signed-off-by: Vitaliy Potyarkin --- .forgejo/workflows/build.yml | 2 +- Makefile | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.forgejo/workflows/build.yml b/.forgejo/workflows/build.yml index cd9295cb4..c366dd6ee 100644 --- a/.forgejo/workflows/build.yml +++ b/.forgejo/workflows/build.yml @@ -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}} diff --git a/Makefile b/Makefile index ab333906c..680d7e00b 100644 --- a/Makefile +++ b/Makefile @@ -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