From f685582e1a7f1253fe7a2d80802091d32682bdca Mon Sep 17 00:00:00 2001 From: Harvey Tindall Date: Sun, 7 Mar 2021 16:27:15 +0000 Subject: [PATCH] run upload.py in git directory --- .drone.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.drone.yml b/.drone.yml index 220a5bc..4eae8e7 100644 --- a/.drone.yml +++ b/.drone.yml @@ -58,10 +58,10 @@ steps: - BUILDRONE_KEY script: - /mnt/buildx/jfa-go/build.sh stable - - rm -f upload.py - - wget https://builds.hrfee.pw/upload.py + - wget https://builds.hrfee.pw/upload.py -O /mnt/buildx/jfa-go/jfa-go/upload.py - pip3 install requests - - bash -c 'BUILDRONE_KEY=$(cat /mnt/buildx/jfa-go/key) python3 upload.py https://builds.hrfee.pw hrfee jfa-go --tag docker-stable=true' + - bash -c 'cd /mnt/buildx/jfa-go/jfa-go && BUILDRONE_KEY=$(cat /mnt/buildx/jfa-go/key) python3 upload.py https://builds.hrfee.pw hrfee jfa-go --tag docker-stable=true' + - rm -f /mnt/buildx/jfa-go/jfa-go/upload.py trigger: event: - tag @@ -124,9 +124,10 @@ steps: command_timeout: 50m script: - /mnt/buildx/jfa-go/build.sh - - wget https://builds.hrfee.pw/upload.py + - wget https://builds.hrfee.pw/upload.py -O /mnt/buildx/jfa-go/jfa-go/upload.py - pip3 install requests - - bash -c 'BUILDRONE_KEY=$(cat /mnt/buildx/jfa-go/key) python3 upload.py https://builds.hrfee.pw hrfee jfa-go --tag docker-unstable=true' + - bash -c 'cd /mnt/buildx/jfa-go/jfa-go && BUILDRONE_KEY=$(cat /mnt/buildx/jfa-go/key) python3 upload.py https://builds.hrfee.pw hrfee jfa-go --tag docker-unstable=true' + - rm -f /mnt/buildx/jfa-go/jfa-go/upload.py trigger: branch: - main