fix cron
This commit is contained in:
parent
df66bfdde6
commit
8a238e1061
45
.drone.yml
45
.drone.yml
@ -16,24 +16,6 @@ steps:
|
|||||||
event:
|
event:
|
||||||
- push
|
- push
|
||||||
|
|
||||||
- name: push-translation
|
|
||||||
image: python:3
|
|
||||||
environment:
|
|
||||||
TRADUORA_W_CLIENT:
|
|
||||||
from_secret: TRADUORA_W_CLIENT
|
|
||||||
TRADUORA_W_SECRET:
|
|
||||||
from_secret: TRADUORA_W_SECRET
|
|
||||||
commands:
|
|
||||||
- pip3 install requests
|
|
||||||
- ./scripts/sync_translation.py --lang-dir lang/ --client $TRADUORA_W_CLIENT --secret $TRADUORA_W_SECRET --push
|
|
||||||
when:
|
|
||||||
branch:
|
|
||||||
- master
|
|
||||||
event:
|
|
||||||
- push
|
|
||||||
instance:
|
|
||||||
- drone_runner_outside
|
|
||||||
|
|
||||||
- name: translate-html
|
- name: translate-html
|
||||||
image: python:3
|
image: python:3
|
||||||
commands:
|
commands:
|
||||||
@ -144,25 +126,6 @@ type: docker
|
|||||||
name: translation
|
name: translation
|
||||||
steps:
|
steps:
|
||||||
- name: fetch-translation
|
- name: fetch-translation
|
||||||
image: debian
|
|
||||||
environment:
|
|
||||||
TRADUORA_R_CLIENT:
|
|
||||||
from_secret: TRADUORA_R_CLIENT
|
|
||||||
TRADUORA_R_SECRET:
|
|
||||||
from_secret: TRADUORA_R_SECRET
|
|
||||||
GITHUB_API:
|
|
||||||
from_secret: GITHUB_API
|
|
||||||
commands:
|
|
||||||
- apt update && apt install -y git python3-requests hub
|
|
||||||
- SOURCE_DIR=$(pwd) ./scripts/commit_new_translation.sh
|
|
||||||
when:
|
|
||||||
event:
|
|
||||||
include:
|
|
||||||
- push
|
|
||||||
instance:
|
|
||||||
- drone_runner_outside
|
|
||||||
|
|
||||||
- name: fetch-translation-cron
|
|
||||||
image: debian
|
image: debian
|
||||||
environment:
|
environment:
|
||||||
TRADUORA_R_CLIENT:
|
TRADUORA_R_CLIENT:
|
||||||
@ -181,3 +144,11 @@ steps:
|
|||||||
- auto-fetch-lang
|
- auto-fetch-lang
|
||||||
instance:
|
instance:
|
||||||
- drone_runner_outside
|
- drone_runner_outside
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
event:
|
||||||
|
include:
|
||||||
|
- cron
|
||||||
|
- push
|
||||||
|
cron:
|
||||||
|
- auto-fetch-lang
|
||||||
|
Loading…
x
Reference in New Issue
Block a user