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

failed to pull image "deployphp/deployer:7" with specified policies #3707

Open
ardzz opened this issue Oct 9, 2023 · 4 comments
Open

failed to pull image "deployphp/deployer:7" with specified policies #3707

ardzz opened this issue Oct 9, 2023 · 4 comments

Comments

@ardzz
Copy link

ardzz commented Oct 9, 2023

Running with gitlab-runner 16.3.0~beta.108.g2b6048b4 (2b6048b4)
on green-3.saas-linux-small-amd64.runners-manager.gitlab.com/default Jhc_Jxvh, system ID: s_0e6850b2bce1
feature flags: FF_USE_IMPROVED_URL_MASKING:true, FF_RESOLVE_FULL_TLS_CHAIN:false
Preparing the "docker+machine" executor 00:05
Using Docker executor with image deployphp/deployer:7 ...
Pulling docker image deployphp/deployer:7 ...
WARNING: Failed to pull image with policy "always": Error response from daemon: pull access denied for deployphp/deployer, repository does not exist or may require 'docker login': denied: requested access to the resource is denied (manager.go:237:0s)
ERROR: Job failed: failed to pull image "deployphp/deployer:7" with specified policies [always]: Error response from daemon: pull access denied for deployphp/deployer, repository does not exist or may require 'docker login': denied: requested access to the resource is denied (manager.go:237:0s)

hpw to fix it?

@Schrank
Copy link
Contributor

Schrank commented Oct 9, 2023

It is new to me, that we have a deployer docker container? Can you tell me, where you found it?

@ochorocho
Copy link
Contributor

I reckon this is why: https://deployer.org/docs/7.x/ci-cd#gitlab-cicd

stages:
  - deploy

deploy:
  stage: deploy
  image:
    name: deployphp/deployer:7 # <--- THIS
    entrypoint: [""]
  before_script:
    - mkdir -p ~/.ssh
    - eval $(ssh-agent -s)
    - echo "$SSH_KNOWN_HOSTS" > ~/.ssh/known_hosts
    - chmod 644 ~/.ssh/known_hosts
    - echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null
  script:
    - dep deploy -vvv
  resource_group: production
  only:
    - master

@ardzz
Copy link
Author

ardzz commented Oct 12, 2023

@ochorocho yes, you right

@ardzz
Copy link
Author

ardzz commented Oct 12, 2023

but at the end, i use registry from registry.gitlab.com/pipeline-components/deployer:latest

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

3 participants