mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2024-11-16 21:53:17 +00:00
deploy everything
This commit is contained in:
parent
cc5e95be09
commit
04f9d2627c
|
@ -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
5
ci.py
|
@ -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__":
|
||||
|
|
Loading…
Reference in a new issue