2023-09-01 20:47:26 -05:00
|
|
|
kind: pipeline
|
|
|
|
name: default
|
|
|
|
|
|
|
|
steps:
|
2023-09-06 14:59:21 -05:00
|
|
|
- name: Make semi-static build with pyinstaller (NOT actually static)
|
2023-11-14 17:24:19 -06:00
|
|
|
image: python:3.11-bookworm
|
2023-09-06 15:42:49 -05:00
|
|
|
environment:
|
|
|
|
GITEA_TOKEN:
|
|
|
|
from_secret: gitea_token
|
2023-09-05 20:18:17 -05:00
|
|
|
commands:
|
2023-09-06 15:42:49 -05:00
|
|
|
- '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
|
2023-09-06 14:59:21 -05:00
|
|
|
- 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
|
2023-09-06 14:59:21 -05:00
|
|
|
- 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
|