chore(CI): Pushing translation in a separate step.
This commit is contained in:
parent
030768e443
commit
dd1d81c232
26
.drone.yml
26
.drone.yml
@ -8,7 +8,23 @@ steps:
|
|||||||
commands:
|
commands:
|
||||||
- (cd web && npm install && npm run build)
|
- (cd web && npm install && npm run build)
|
||||||
|
|
||||||
- name: translate-web
|
- 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
|
||||||
|
- (cd lang && ./sync_translation.py --client $TRADUORA_W_CLIENT --secret $TRADUORA_W_SECRET --push)
|
||||||
|
when:
|
||||||
|
branch:
|
||||||
|
- master
|
||||||
|
event:
|
||||||
|
- push
|
||||||
|
|
||||||
|
- name: translate-html
|
||||||
image: python:3
|
image: python:3
|
||||||
commands:
|
commands:
|
||||||
- pip3 install jinja2
|
- pip3 install jinja2
|
||||||
@ -16,14 +32,8 @@ steps:
|
|||||||
|
|
||||||
- name: deploy-testing
|
- name: deploy-testing
|
||||||
image: debian
|
image: debian
|
||||||
environment:
|
|
||||||
TRADUORA_W_CLIENT:
|
|
||||||
from_secret: TRADUORA_W_CLIENT
|
|
||||||
TRADUORA_W_SECRET:
|
|
||||||
from_secret: TRADUORA_W_SECRET
|
|
||||||
commands:
|
commands:
|
||||||
- apt-get -qq update && apt-get -qq install git python3-requests > /dev/null
|
- apt-get -qq update && apt-get -qq install git > /dev/null
|
||||||
- (cd lang && ./sync_translation.py --client $TRADUORA_W_CLIENT --secret $TRADUORA_W_SECRET --push)
|
|
||||||
- sed -i 's/target_version = git/target_version = testing/' configuration.default.ini
|
- sed -i 's/target_version = git/target_version = testing/' configuration.default.ini
|
||||||
- version=$(git rev-parse HEAD)
|
- version=$(git rev-parse HEAD)
|
||||||
- echo "current git commit is $version"
|
- echo "current git commit is $version"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user