android_vendor_mulchwebview/.github/workflows/updater.yml

30 lines
761 B
YAML

kind: pipeline
type: docker
name: Updater
steps:
- name: update
image: eclipse-temurin:17.0.6_10-jdk-focal
entrypoint: [ "/bin/bash" ]
commands:
- apt update
- apt install -y --no-install-recommends pipx python3-venv python3.9 python3-pip
- pipx install pipenv
- pipx ensurepath
- export PATH=/root/.local/bin:$PATH
- pipenv install
- cd updater
- pipenv --python /usr/bin/python3.9 run pip install requests_cache
- pipenv --python /usr/bin/python3.9 run python main.py
- 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 [CI SKIP]"
ssh_key:
from_secret: ssh