Use contexts with docker auth

docker
circle.yml
auth
contexts

#1

Is it possible to use contexts variables with docker auth? I’m trying to use them with this config.yml, but an error message is displayed:


defaults: &defaults
working_directory: /tmp
docker:
- image: myorg/myimage:latest
auth:
username: $DOCKERHUB_LOGIN
password: $DOCKERHUB_PASS

version: 2
jobs:
printenv:
<<: *defaults
steps:
- run:
name: Generate semantic version number
command: printenv
workflows:
version: 2
build_and_push:
jobs:
- printenv

ERROR MESSAGE:
Build-agent version 0.0.3968-26b8e94 (2017-08-21T21:12:40+0000)
Starting container myorg/myimage:latest
image cache not found on this host, downloading myorg/myimage:latest
Error response from daemon: repository myorg/myimage not found: does not exist or no pull access


#2

Nevermind… I just forgot to add context key in workflows


workflows:
version: 2
build_and_push:
jobs:
- printenv:
context: org-global


#3