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)
|
|
|
|
image: python:latest
|
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 ""'
|
|
|
|
- git pull
|
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
|
|
|
|
- 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-09-06 14:59:21 -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
|