From bddb9fea0985d8df759595e48fbd644f4f5d5164 Mon Sep 17 00:00:00 2001 From: dzu Date: Thu, 5 Feb 2026 19:56:34 +0000 Subject: [PATCH 1/3] fix "cannot log in on a non-tty device" error --- main.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.sh b/main.sh index e15e745..b7d85a7 100755 --- a/main.sh +++ b/main.sh @@ -23,7 +23,7 @@ echo "Building the image, tag=$IMAGE_TAG" docker build --compress --tag $IMAGE_TAG $CONTEXT # log in the registry -printenv TOKEN | docker login -u $USER --password-stdin $REGISTRY_URL +echo $TOKEN | docker login -u $USER --password-stdin $REGISTRY_URL # push the image docker push $IMAGE_TAG From f037e1ac6c074d93128913b77601e1d03a25919a Mon Sep 17 00:00:00 2001 From: dzu Date: Thu, 5 Feb 2026 20:14:43 +0000 Subject: [PATCH 2/3] use _actually good_ bash arguments --- main.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.sh b/main.sh index b7d85a7..ec9fc7c 100755 --- a/main.sh +++ b/main.sh @@ -1,5 +1,5 @@ #!/bin/bash -set -o fep +set -eu -o pipefail REGISTRY_URL=$(printenv INPUT_REGISTRY-URL) USER=$(printenv INPUT_REGISTRY-USER) From de8fe6333b833c5d5cba7e0bb785a5db49a04806 Mon Sep 17 00:00:00 2001 From: dzu Date: Thu, 5 Feb 2026 20:32:14 +0000 Subject: [PATCH 3/3] refer to correct image for my CI --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index df14f39..c198562 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ Works, as long as there is access to `docker` CLI. -In my workflows, it is being run in the `alpine` linux with `git`, `bash` and `docker-cli` packages installed (see [actions/alpine](https://git.dzuchun.ing/actions/alpine)). Official `docker:cli` image should work too. +In my workflows, it is being run in the `alpine` linux with `git`, `bash` and `docker-cli` packages installed (see [actions/docker](https://git.dzuchun.ing/actions/docker)). Official `docker:cli` image should work too. ## License