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

Error response from daemon: pull access denied for act-appleboy-ssh-action-master-dockeraction, repository does not exist or may require 'docker login': denied: requested access to the resource is denied #230

Closed
EduardsE opened this issue Mar 8, 2023 · 3 comments

Comments

@EduardsE
Copy link

EduardsE commented Mar 8, 2023

Has anyone gotten this working with act? I'm getting this weird error.

Error response from daemon: pull access denied for act-appleboy-ssh-action-master-dockeraction, 
repository does not exist or may require 'docker login': denied: requested access to the 
resource is denied
name: Node CI
on: [push]
jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - name: Login to Docker Hub
        uses: docker/login-action@v2
        with:
          username: [username]
          password: [token]

      - name: Install Backend packages
        uses: appleboy/ssh-action@master
        with:
          host: [ip address]
          username: [username]
          key: ${{ secrets.SSH_PRIVATE_KEY }}
          port: 22
          script: |
            which docker
@1Tian-zhang
Copy link

i have the same error in act, but succeed in github push action

@BartDrown
Copy link

It is because those are different layers, docker in docker/login-action isn't executed on ssh machine
Login to container registry must be done on its own, I did solve it using following command:

script: |
    echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u github.actor --password-stdin 

appleboy added a commit that referenced this issue Apr 18, 2023
- Add a new job named "testing04" for docker login and pull in ci.yml file.

ref: #230
@appleboy
Copy link
Owner

See the example below.

    - name: login GitHub Container Registry
      uses: appleboy/ssh-action@v0.1.10
      with:
        host: ${{ secrets.HOST }}
        username: ${{ secrets.USERNAME }}
        key: ${{ secrets.KEY }}
        port: ${{ secrets.PORT }}
        script_stop: true
        script: |
          echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u github.actor --password-stdin

    - name: login DockerHub Container Registry
      uses: appleboy/ssh-action@v0.1.10
      with:
        host: ${{ secrets.HOST }}
        username: ${{ secrets.USERNAME }}
        key: ${{ secrets.KEY }}
        port: ${{ secrets.PORT }}
        script_stop: true
        script: |
          echo ${{ secrets.DOCKERHUB_TOKEN }} | docker login -u ${{ secrets.DOCKERHUB_USERNAME }} --password-stdin

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

4 participants