forked from TrueCloudLab/action-env
Debug REGISTRY_PASSWORD without revealing it
Signed-off-by: Vitaliy Potyarkin <v.potyarkin@yadro.com>
This commit is contained in:
parent
e128ea6fdd
commit
ab35bf6f37
2 changed files with 3 additions and 2 deletions
|
@ -44,4 +44,4 @@ jobs:
|
||||||
(github.event_name == 'workflow_dispatch' ||
|
(github.event_name == 'workflow_dispatch' ||
|
||||||
(steps.changed.outputs.any_changed == 'true' && github.event_name == 'push'))
|
(steps.changed.outputs.any_changed == 'true' && github.event_name == 'push'))
|
||||||
env:
|
env:
|
||||||
REGISTRY_PASSWORD: ${secrets.REGISTRY_PASSWORD}
|
REGISTRY_PASSWORD: ${{secrets.REGISTRY_PASSWORD}}
|
||||||
|
|
3
Makefile
3
Makefile
|
@ -16,6 +16,7 @@ $(TAGS):
|
||||||
|
|
||||||
PUSH=$(foreach tag,$(TAGS),push-$(tag))
|
PUSH=$(foreach tag,$(TAGS),push-$(tag))
|
||||||
$(PUSH):
|
$(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 push --rm $(IMAGE):$@ docker://$(IMAGE):$@
|
||||||
buildah logout
|
buildah logout
|
||||||
|
|
Loading…
Reference in a new issue