mirror of
https://github.com/nix-community/docker-nixpkgs.git
synced 2026-01-11 12:30:36 -05:00
14 lines
222 B
Bash
Executable File
14 lines
222 B
Bash
Executable File
#!/bin/sh -eu
|
|
|
|
mkdir ~/.docker
|
|
|
|
cat <<DOCKER_CONF > ~/.docker/config.json
|
|
{
|
|
"auths": {
|
|
"$CI_REGISTRY": {
|
|
"auth": "$(printf "%s:%s" "$CI_REGISTRY_USER" "$CI_REGISTRY_PASSWORD" | base64)"
|
|
}
|
|
}
|
|
}
|
|
DOCKER_CONF
|