My GitHub actions return the following error when I try to login to docker from Github,
Cannot perform an interactive login from a non-TTY device
Here is my sample deployment file and I have stored my docker username and DockerHub Token under the Dependabot secrets
What's wrong here?
name: deploy-auth
on:
push:
branches: [ "master" ]
paths:
- 'auth/**'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: cd auth && docker build -t myusername/auth .
- run: docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD --password-stdin
env:
DOCKER_USERNAME: ${{secrets.DOCKER_USERNAME}}
DOCKER_PASSWORD: ${{secrets.DOCKER_PASSWORD}}
- run: docker push myusername/auth