-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
56 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
kind: pipeline | ||
type: docker | ||
name: daily-generation-routine | ||
|
||
steps: | ||
- name: checkout | ||
image: alpine/git | ||
commands: | ||
- git clone --recursive https://github.com/your-repo/your-project.git . | ||
|
||
- name: install-poetry | ||
image: python:3 | ||
commands: | ||
- curl -sSL https://install.python-poetry.org | python3 - | ||
- poetry --version | ||
- poetry install | ||
|
||
- name: run-updateCache | ||
image: python:3 | ||
environment: | ||
LIMS_KEY: | ||
from_secret: LIMS_KEY | ||
YOUTUBE_API_KEY: | ||
from_secret: YOUTUBE_API_KEY | ||
commands: | ||
- poetry run updateCache | ||
|
||
- name: run-generate | ||
image: python:3 | ||
environment: | ||
ANTHROPIC_KEY: | ||
from_secret: ANTHROPIC_KEY | ||
LIMS_KEY: | ||
from_secret: LIMS_KEY | ||
YOUTUBE_API_KEY: | ||
from_secret: YOUTUBE_API_KEY | ||
commands: | ||
- poetry run generate | ||
|
||
- name: commit-and-push | ||
image: alpine/git | ||
environment: | ||
GITHUB_TOKEN: | ||
from_secret: GITHUB_TOKEN | ||
commands: | ||
- git config --global user.name 'drone-ci[bot]' | ||
- git config --global user.email 'drone-ci[bot]@users.noreply.github.com' | ||
- git add . | ||
- git commit -m "automated daily generation routine" | ||
- git push https://oauth2:${GITHUB_TOKEN}@github.com/your-repo/your-project.git | ||
|
||
trigger: | ||
cron: | ||
- 6 21 * * * | ||
event: | ||
- custom |
This file was deleted.
Oops, something went wrong.