Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Post action failure for docker login action #168

Open
komalchavan-tw opened this issue Sep 25, 2024 · 2 comments
Open

Post action failure for docker login action #168

komalchavan-tw opened this issue Sep 25, 2024 · 2 comments

Comments

@komalchavan-tw
Copy link

komalchavan-tw commented Sep 25, 2024

Hey Team,

We are using this action to retry docker login on failures like below :

      name: Login to Image Repo
      uses: Wandalen/[email protected]
      with:
        action: docker/login-action@v3
        with: |
          username: ${{ inputs.username }}
          password: ${{ inputs.password }}
          registry: ${{ inputs.registry_url }}
        attempt_limit: 3
        attempt_delay: 10000

But it always logs error for post clean up action.

32s
Post job cleanup.
Post job cleanup.
Post job cleanup.
Error: Username and password required
Error: Username and password required
Error: Username and password required
Error: Process returned exit code [1]()
Launched as "/home/runner/runners/[2]().319.1/externals/node20/bin/node /home/runner/work/_actions/Wandalen/wretry.action/v[3]().5.0_js_action/src/Runner.mjs /home/runner/work/_actions/Wandalen/login-action/dist/index.js"

Not sure what can be changed here to avoid these errors. Please help!.

@dmvict
Copy link
Collaborator

dmvict commented Sep 26, 2024

Hello @komalchavan-tw

I'll look at it when I have time.

@dmvict
Copy link
Collaborator

dmvict commented Oct 29, 2024

Hello @komalchavan-tw

I tried to reproduce the described behavior and I failed. It might be an issue of Github Actions.
I've used this code snippet:

    steps :
      - name: test
        uses: Wandalen/[email protected]
        with:
          action: docker/login-action@v3
          with: |
            username: ${{ secrets.DOCKER_NAME }}
            password: ${{ secrets.DOCKER_TOKEN }}
          attempt_limit: 3
          attempt_delay: 10000

@komalchavan-tw May you check the behavior of the action?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants