-
Notifications
You must be signed in to change notification settings - Fork 0
/
.drone.yml
40 lines (36 loc) · 980 Bytes
/
.drone.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
---
kind: pipeline
type: docker
name: daily-generation-routine
steps:
- name: install-poetry
image: mwalbeck/python-poetry:latest
environment:
ANTHROPIC_KEY:
from_secret: ANTHROPIC_KEY
LIMS_KEY:
from_secret: LIMS_KEY
YOUTUBE_API_KEY:
from_secret: YOUTUBE_API_KEY
commands:
- poetry --version
- poetry install
- poetry run updateCache
- poetry run generate
- name: commit-and-push
image: bitnami/git
environment:
GITHUB_TOKEN:
from_secret: GITHUB_TOKEN
commands:
- git config --global user.name $GIT_COMMITTER_NAME
- git config --global user.email $GIT_AUTHOR_EMAIL
- git add .
- git commit -m "automated daily generation routine"
- git remote set-url origin "https://$GITHUB_TOKEN@github.com/subdavis/open-journal-mpls.git"
- git push --set-upstream origin main
trigger:
event:
- cron
cron:
- "daily-generation-routine"