sysadmin/registrykeygen.sh

15 lines
368 B
Bash
Raw Normal View History

2020-06-04 04:52:07 -04:00
#!/bin/bash
REG_USER_REMOTE=KUR
REG_PASS_REMOTE=MUR
REG_HOST_REMOTE=HOSTZZ
export REG_HOST_REMOTE
REG_ACCOUNT="${REG_USER_REMOTE}:${REG_PASS_REMOTE}"
REG_B64_ACCOUNT=`echo $REG_ACCOUNT | base64 -w 0`
export REG_B64_ACCOUNT
REG_B64_CONFIG=`cat dockerconfig.json | envsubst | base64 -w 0`
export REG_B64_CONFIG
cat registrykey.yaml | envsubst