Create registrykeygen.sh

This commit is contained in:
deflax 2020-06-04 11:52:07 +03:00 committed by GitHub
parent 8f4b6926c8
commit 800bf6e91d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

14
registrykeygen.sh Normal file
View file

@ -0,0 +1,14 @@
#!/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