alwaysdungeons/.drone.yml

24 lines
675 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
commands:
2023-09-06 15:01:08 -05:00
- git apply docker.patch
- apt-get update
- apt-get install binutils -y
- pip install pyinstaller
- 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
- 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