From e7d4b5051bc2c62f453285057819f8c514ed4195 Mon Sep 17 00:00:00 2001 From: Harvey Tindall Date: Fri, 23 Jun 2023 14:43:19 +0100 Subject: [PATCH] build: cleanup reprepro incoming after processing --- .drone.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.drone.yml b/.drone.yml index 70dbf08..ed3b7cf 100644 --- a/.drone.yml +++ b/.drone.yml @@ -28,6 +28,7 @@ steps: - pip3 install requests - bash -c 'sftp -P 2022 -i /id_rsa -o StrictHostKeyChecking=no root@161.97.102.153:/repo/incoming <<< $"put dist/*.deb"' - bash -c 'ssh -i /id_rsa root@161.97.102.153 -p 2022 "repo-process-deb trusty"' + bash -c 'ssh -i /id_rsa root@161.97.102.153 -p 2022 "rm /repo/incoming/*.deb"' - bash -c 'python3 ../upload.py https://builds.hrfee.pw hrfee jfa-go --tag internal=true' volumes: - name: ssh_key @@ -95,10 +96,13 @@ steps: # - bash -c 'ssh -i /id_rsa root@161.97.102.153 -p 2022 "reprepro -Vb /repo remove trusty-unstable jfa-go"' # - bash -c 'ssh -i /id_rsa root@161.97.102.153 -p 2022 "reprepro -Vb /repo remove trusty-unstable jfa-go-tray"' - bash -c 'ssh -i /id_rsa root@161.97.102.153 -p 2022 "repo-process-deb trusty"' + bash -c 'ssh -i /id_rsa root@161.97.102.153 -p 2022 "rm /repo/incoming/*.deb"' - bash -c 'python3 upload.py https://builds.hrfee.pw hrfee jfa-go --upload ./dist/*.zip ./dist/*.rpm ./dist/*.apk --tag internal-git=true' environment: BUILDRONE_KEY: from_secret: BUILDRONE_KEY + JFA_GO_BUILT_BY: + from_secret: BUILT_BY volumes: - name: ssh_key