deploy everything

This commit is contained in:
Alya Sirko 2022-09-10 06:25:05 +03:00
parent cc5e95be09
commit 04f9d2627c
2 changed files with 4 additions and 3 deletions

View file

@ -101,8 +101,6 @@ steps:
- name: Deploy F-Droid Repo
commands:
- eval `ssh-agent -s`
- echo "$SSH_PRIVATE_KEY" | ssh-add -
- podman unshare ./ci.py --deploy-fdroid-repo
environment:
SSH_PRIVATE_KEY:

5
ci.py
View file

@ -46,7 +46,10 @@ def deploy_gitea_release():
"--asset", f"{HOST_MOUNTED_VOLUME}/{APP_NAME}-{APP_SEMVER}.tar.zstd"])
def deploy_fdroid_repo():
subprocess.run(["scp", "-r", f"{HOST_HOME}/fdroid/repo/*",
subprocess.run(["eval $(ssh-agent -s)"], shell=True)
subprocess.run(["printf " + os.environ.get('SSH_PRIVATE_KEY') + " | ssh-add -"], shell=True)
subprocess.run(["scp", "-oStrictHostKeyChecking=no", "-oUserKnownHostsFile=/dev/null",
"-r", f"{HOST_HOME}/fdroid/repo/*",
"deployer@selfprivacy.org:/var/www/fdroid.selfprivacy.org"])
if __name__ == "__main__":