Simplify CI config by using ssh deploy keys

Signed-off-by: baalajimaestro <me@baalajimaestro.me>
This commit is contained in:
baalajimaestro 2023-06-18 18:05:15 +05:30
parent 0391609c77
commit 0bacbf7241
Signed by: baalajimaestro
GPG key ID: F93C394FE9BBAFD5

View file

@ -30,8 +30,6 @@ BLACKLIST = [
# Env vars to handle creds # Env vars to handle creds
enc_path = os.environ.get("ENCRYPTED_PATH") enc_path = os.environ.get("ENCRYPTED_PATH")
enc_repo = os.environ.get("ENCRYPTED_REPO") enc_repo = os.environ.get("ENCRYPTED_REPO")
enc_repo_user = os.environ.get("ENCRYPTED_REPO_USERNAME")
enc_repo_pass = os.environ.get("ENCRYPTED_REPO_PASSWORD")
enc_key = os.environ.get("ENCRYPTION_KEY") enc_key = os.environ.get("ENCRYPTION_KEY")
# Create our encrypted directory base # Create our encrypted directory base
@ -45,7 +43,7 @@ os.chdir(enc_path)
repo = Repo.init(enc_path) repo = Repo.init(enc_path)
repo.create_remote( repo.create_remote(
"origin", "origin",
f"https://{enc_repo_user}:{enc_repo_pass}@github.com/{enc_repo}.git", f"git@github.com:{enc_repo}.git",
) )
# Glob the file list of "." starting files and non "." starting files # Glob the file list of "." starting files and non "." starting files