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