android_vendor_mulchwebview/.drone.yml

33 lines
689 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 git
- cd updater
- pipx install pipenv
- pipx ensurepath
- export PATH=/root/.local/bin:$PATH
- pipenv install
- pipenv --python /usr/bin/python3.9 run python main.py
- name: push
image: ghcr.io/appleboy/drone-git-push
pull: if-not-exists
settings:
branch: main
remote: git@git.nelim.org:matt1432/android_vendor_mulchwebview.git
ssh_key:
from_secret: ssh
trigger:
event:
- cron
cron:
- update