alwaysdungeons/.drone.yml
2023-10-31 18:15:57 -05:00

30 lines
No EOL
961 B
YAML

kind: pipeline
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 origin main
- git apply docker.patch
- apt-get update
- apt-get install binutils -y
- pip install pyinstaller
- apt update && apt install rustc -y
- cd /drone/src && pip install -r requirements.txt && pyinstaller main.py
- chmod 777 /drone/src/dist/main/main
- cd /drone/src/dist/main && tar cvfz /drone/src/AlwaysDungeons.tar.gz *
- name: build and publish
image: plugins/docker
pull: always
settings:
repo: askiiart/discord-always-dungeons
tags: latest
username:
from_secret: docker_username
password:
from_secret: docker_password