Created
January 25, 2019 11:38
-
-
Save zedtux/ac6671f70597ad6ffbf9aae387bba22c to your computer and use it in GitHub Desktop.
Replaces the Kubernetes docker-registry secret data
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Updates the GITLAB_REGISTRY_SECRET_JSON with the removed auths key | |
# and replace the Kubernetes secret | |
FINAL_JSON=$( | |
echo $GITLAB_REGISTRY_SECRET_JSON | \ | |
sed -e s"/\".dockerconfigjson\":\s\"\([a-zA-Z0-9=]\+\)\"/\".dockerconfigjson\":\"$AUTHS\"/" | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment