This repository was archived by the owner on Dec 9, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 22
This repository was archived by the owner on Dec 9, 2022. It is now read-only.
Docker tries interactive login #16
Copy link
Copy link
Open
Description
Currently the docker cli tries to login in interactively, despite https://github.com/machine-learning-apps/gpr-docker-publish/blob/master/entrypoint.sh#L37
This fails because the shell is not a TTY. Notably, the failure is non-fatal and the workflow continues on (but no upload occurs).
Workflow step: https://github.com/ksync/ksync/blob/master/.github/workflows/publish.yml#L39-L48
Build output:
Run machine-learning-apps/gpr-docker-publish@v1.3
2020-02-20T23:26:35.1112533Z with:
2020-02-20T23:26:35.1112653Z IMAGE_NAME: ksync
2020-02-20T23:26:35.1112752Z TAG: git-
2020-02-20T23:26:35.1112869Z DOCKERFILE_PATH: docker/Dockerfile
2020-02-20T23:26:35.1112987Z BUILD_CONTEXT: ./
2020-02-20T23:26:35.1113291Z cache: true
2020-02-20T23:26:35.1113408Z env:
2020-02-20T23:26:35.1113513Z GOROOT: /opt/hostedtoolcache/go/1.13.6/x64
2020-02-20T23:26:35.1114084Z GITHUB_TOKEN: ***
2020-02-20T23:26:35.1114209Z ##[endgroup]
2020-02-20T23:26:35.1141671Z ##[command]/usr/bin/docker run --name e87b520c8fd46adfb841b1902868b1eb293481_5424d4 --label e87b52 --workdir /github/workspace --rm -e GOROOT -e GITHUB_TOKEN -e INPUT_IMAGE_NAME -e INPUT_TAG -e INPUT_DOCKERFILE_PATH -e INPUT_BUILD_CONTEXT -e INPUT_CACHE -e INPUT_PASSWORD -e INPUT_USERNAME -e HOME -e GITHUB_REF -e GITHUB_SHA -e GITHUB_REPOSITORY -e GITHUB_RUN_ID -e GITHUB_RUN_NUMBER -e GITHUB_ACTOR -e GITHUB_WORKFLOW -e GITHUB_HEAD_REF -e GITHUB_BASE_REF -e GITHUB_EVENT_NAME -e GITHUB_WORKSPACE -e GITHUB_ACTION -e GITHUB_EVENT_PATH -e RUNNER_OS -e RUNNER_TOOL_CACHE -e RUNNER_TEMP -e RUNNER_WORKSPACE -e ACTIONS_RUNTIME_URL -e ACTIONS_RUNTIME_TOKEN -e GITHUB_ACTIONS=true -v "/var/run/docker.sock":"/var/run/docker.sock" -v "/home/runner/work/_temp/_github_home":"/github/home" -v "/home/runner/work/_temp/_github_workflow":"/github/workflow" -v "/home/runner/work/ksync/ksync":"/github/workspace" e87b52:0c8fd46adfb841b1902868b1eb293481
2020-02-20T23:26:35.4465070Z Error: Cannot perform an interactive login from a non TTY device
2020-02-20T23:26:35.4894326Z Using default tag: latest
2020-02-20T23:26:36.4794075Z Sending build context to Docker daemon 165.6MB
2020-02-20T23:26:36.4794245Z
2020-02-20T23:26:36.4878471Z Step 1/9 : FROM alpine
2020-02-20T23:26:36.4879360Z ---> e7d92cdc71fe
2020-02-20T23:26:36.4879573Z Step 2/9 : MAINTAINER Thomas Rampelberg <thomasr@saunter.org>
2020-02-20T23:26:36.4879904Z ---> Using cache
2020-02-20T23:26:36.4880228Z ---> 342b39ab34ac
2020-02-20T23:26:36.4880388Z Step 3/9 : ENV DOCKER_OS=linux
2020-02-20T23:26:36.4880673Z ---> Using cache
2020-02-20T23:26:36.4880973Z ---> a406b34b0814
2020-02-20T23:26:36.4881132Z Step 4/9 : ENV DOCKER_ARCH=amd64
2020-02-20T23:26:36.4881430Z ---> Using cache
2020-02-20T23:26:36.4881727Z ---> fea0222c6c7c
2020-02-20T23:26:36.4881909Z Step 5/9 : COPY docker/config.xml /var/syncthing/config/config.xml
2020-02-20T23:26:36.4882218Z ---> Using cache
2020-02-20T23:26:36.4882518Z ---> 99fedec6196b
2020-02-20T23:26:36.4882666Z Step 6/9 : ENV release=
2020-02-20T23:26:36.4882960Z ---> Using cache
2020-02-20T23:26:36.4883520Z ---> 9fdb6990bf5f
2020-02-20T23:26:36.4885198Z Step 7/9 : RUN apk add --no-cache --virtual .deps curl gnupg jq && apk add --no-cache ca-certificates && gpg --keyserver keyserver.ubuntu.com --recv-key D26E6ED000654A3E && set -x && mkdir /syncthing && cd /syncthing && release=${release:-$(curl -s https://api.github.com/repos/syncthing/syncthing/releases/latest | jq -r .tag_name )} && curl -sLO https://github.com/syncthing/syncthing/releases/download/${release}/syncthing-linux-amd64-${release}.tar.gz && curl -sLO https://github.com/syncthing/syncthing/releases/download/${release}/sha256sum.txt.asc && gpg --verify sha256sum.txt.asc && grep syncthing-linux-amd64 sha256sum.txt.asc | sha256sum && tar -zxf syncthing-linux-amd64-${release}.tar.gz && mv syncthing-linux-amd64-${release}/syncthing . && rm -rf syncthing-linux-amd64-${release} sha256sum.txt.asc syncthing-linux-amd64-${release}.tar.gz && apk del .deps
2020-02-20T23:26:36.4885746Z ---> Using cache
2020-02-20T23:26:36.4886051Z ---> 7206e02990d3
2020-02-20T23:26:36.4886212Z Step 8/9 : ENV STNOUPGRADE=1
2020-02-20T23:26:36.4886512Z ---> Using cache
2020-02-20T23:26:36.4886799Z ---> 7d0b73b2cc69
2020-02-20T23:26:36.4886988Z Step 9/9 : COPY bin/radar_${DOCKER_OS}_${DOCKER_ARCH} /radar
2020-02-20T23:26:36.4887472Z ---> Using cache
2020-02-20T23:26:36.4887837Z ---> f0d66c25a177
2020-02-20T23:26:36.5154480Z Successfully built f0d66c25a177
2020-02-20T23:26:36.5173842Z Successfully tagged docker.pkg.github.com/ksync/ksync/ksync:b2ca492b769a
2020-02-20T23:26:36.5234119Z Successfully tagged docker.pkg.github.com/ksync/ksync/ksync:latest
2020-02-20T23:26:36.5481104Z The push refers to repository [docker.pkg.github.com/ksync/ksync/ksync]
2020-02-20T23:26:36.5773016Z no basic auth credentials
2020-02-20T23:26:36.5776765Z a4586487c3a6: Preparing
2020-02-20T23:26:36.5777157Z 496821b2d1a4: Preparing
2020-02-20T23:26:36.5777442Z 11bb8898ea41: Preparing
2020-02-20T23:26:36.5777746Z 5216338b40a7: Preparing
2020-02-20T23:26:36.6352035Z The push refers to repository [docker.pkg.github.com/ksync/ksync/ksync]
2020-02-20T23:26:36.6636749Z a4586487c3a6: Preparing
2020-02-20T23:26:36.6643309Z 496821b2d1a4: Preparing
2020-02-20T23:26:36.6643756Z 11bb8898ea41: Preparing
2020-02-20T23:26:36.6643963Z 5216338b40a7: Preparing
2020-02-20T23:26:36.6646111Z no basic auth credentialsI'm not entirely sure why it's not taking the input on stdin
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels