From 67dae155cee395d0b994a4335dad0dc1dd643e9c Mon Sep 17 00:00:00 2001 From: askiiart Date: Wed, 6 Sep 2023 15:42:49 -0500 Subject: [PATCH] Add automatic mirror sync before building --- .drone.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.drone.yml b/.drone.yml index 66cecae..04890e3 100644 --- a/.drone.yml +++ b/.drone.yml @@ -4,7 +4,12 @@ name: default steps: - name: Make semi-static build with pyinstaller (NOT actually static) image: python:latest + environment: + GITEA_TOKEN: + from_secret: gitea_token commands: + - 'curl -X "POST" "https://git.askiiart.net/api/v1/repos/askiiart/AlwaysDungeons/mirror-sync?access_token=${GITEA_TOKEN}" -H "accept: application/json" -d ""' + - git pull - git apply docker.patch - apt-get update - apt-get install binutils -y