alwaysdungeons/.drone.yml

30 lines
961 B
YAML
Raw Normal View History

2023-09-01 20:47:26 -05:00
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 ""'
2023-09-07 22:44:48 -05:00
- git pull origin main
2023-09-06 15:01:08 -05:00
- git apply docker.patch
- apt-get update
- apt-get install binutils -y
- pip install pyinstaller
2023-10-31 18:15:57 -05:00
- apt update && apt install rustc -y
- cd /drone/src && pip install -r requirements.txt && pyinstaller main.py
2023-09-06 15:03:24 -05:00
- chmod 777 /drone/src/dist/main/main
2023-10-31 18:15:57 -05:00
- cd /drone/src/dist/main && tar cvfz /drone/src/AlwaysDungeons.tar.gz *
2023-09-01 20:47:26 -05:00
- 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