2023-03-08 14:53:32 -05:00
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
2023-03-08 14:38:17 -05:00
|
|
|
name: Updater
|
2023-03-08 14:53:32 -05:00
|
|
|
|
|
|
|
steps:
|
2023-03-08 15:11:36 -05:00
|
|
|
- name: update
|
2023-03-08 15:17:19 -05:00
|
|
|
image: eclipse-temurin:17.0.6_10-jdk-focal
|
2023-03-08 15:38:29 -05:00
|
|
|
entrypoint: [ "/bin/bash" ]
|
2023-03-08 15:11:36 -05:00
|
|
|
commands:
|
2023-03-08 15:41:46 -05:00
|
|
|
- apt update
|
2023-03-08 16:11:28 -05:00
|
|
|
- apt install -y --no-install-recommends pipx python3-venv python3.9 python3-pip
|
2023-03-08 15:11:36 -05:00
|
|
|
- pipx install pipenv
|
2023-03-08 15:54:46 -05:00
|
|
|
- pipx ensurepath
|
2023-03-08 15:56:46 -05:00
|
|
|
- export PATH=/root/.local/bin:$PATH
|
2023-03-08 15:11:36 -05:00
|
|
|
- pipenv install
|
|
|
|
- cd updater
|
2023-03-08 16:20:29 -05:00
|
|
|
- pipenv --python /usr/bin/python3.9 run pip install requests_cache
|
2023-03-08 16:04:30 -05:00
|
|
|
- pipenv --python /usr/bin/python3.9 run python main.py
|
2023-03-08 17:26:30 -05:00
|
|
|
|
|
|
|
- name: push
|
|
|
|
image: appleboy/drone-git-push
|
|
|
|
pull: if-not-exists
|
|
|
|
settings:
|
|
|
|
branch: main
|
|
|
|
remote: git@git.nelim.org:matt1432/android_vendor_mulchwebview.git
|
|
|
|
commit: true
|
|
|
|
commit_message: "Updated APK"
|
|
|
|
ssh_key:
|
|
|
|
from_secret: ssh
|