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

zero-downtime-push can not find docker registry password #23

Closed
r-chris opened this issue Mar 15, 2018 · 2 comments
Closed

zero-downtime-push can not find docker registry password #23

r-chris opened this issue Mar 15, 2018 · 2 comments

Comments

@r-chris
Copy link

r-chris commented Mar 15, 2018

Hi, I am trying to use this resource to get zero-downtime deploys working. Unfortunately, I am receiving this error:

[INFO] cf version 6.32.0+0191c33d9.2017-09-26
Setting api endpoint to https://api*****...
OK

api endpoint:   https://api*****
api version:    2.100.0
Not logged in. Use 'cf login' to log in.
API endpoint: https://api*****
Authenticating...
OK
Use 'cf target' to view or set your target org and space.
[INFO] Executing zero-downtime-push:staging
api endpoint:   https://api.lyra-836.appcloud.swisscom.com
api version:    2.100.0
user:           ***@***
org:            ***
space:          Staging
Renaming app staging to staging-venerable in org **** / space Staging as ***@***...
OK
Using manifest file git/cf/manifest-stage.yml

Deleting app staging in org *** / space Staging as ***@***...
OK
App staging does not exist.
Renaming app staging-venerable to staging in org *** / space Staging as ***@***...
OK
error: No Docker password was provided. Please provide the password by setting the CF_DOCKER_PASSWORD environment variable.

My put section looks like this and includes the CF_DOCKER_PASSWORD inside the environment_variables parameters. This was working before I tried to switch from the build in cf-resource.

  - put: deploy-staging
    params:
      command: zero-downtime-push
      manifest: git/cf/manifes-stage.yml
      current_app_name:staging
      environment_variables:
        ENVIRONMENT: staging
        CF_DOCKER_PASSWORD: ((docker-registry-password))

Thanks for any help.

@r-chris
Copy link
Author

r-chris commented Mar 15, 2018

I tested this against a simple setup with a public docker image (pulling from docker-hub) and that didn't have any issue. Unfortunately, it appears that it doesn't work when trying to pull from a private docker registry.

@r-chris
Copy link
Author

r-chris commented Mar 21, 2018

I'm going to close this as a symptom (a.k.a duplicate) of #24

@r-chris r-chris closed this as completed Mar 21, 2018
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

1 participant