Skip to content

Commit

Permalink
Fix push to Transifex
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed Jun 7, 2019
1 parent 0809577 commit eb288bd
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 6 deletions.
28 changes: 22 additions & 6 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,19 @@ jobs:
- run:
name: Clean Docker hub tags
command: ci/clean-dockerhub-tags
- deploy:
name: Push to Transifex
command: |
docker build --target=build --tag=transifex --build-arg=MAJOR_VERSION=${MAJOR_VERSION} .
docker run --name=transifex -ti --rm --detach transifex tail -f /dev/null
docker exec transifex bash -c "echo \"[https://www.transifex.com]\" > ~/.transifexrc"
docker exec transifex bash -c "echo \"hostname = https://www.transifex.com\" >> ~/.transifexrc"
docker exec transifex bash -c "echo \"username = ${TRANSIFEX_USERNAME}\" >> ~/.transifexrc"
docker exec transifex bash -c "echo \"password = ${TRANSIFEX_PASSWORD}\" >> ~/.transifexrc"
docker exec transifex bash -c "echo \"token =\" >> ~/.transifexrc"
docker exec transifex make transifex-send
docker stop transifex
- deploy: &publish-docker-pip
name: Push to Docker hub and Pypi
command: |
Expand Down Expand Up @@ -207,12 +220,15 @@ jobs:
- deploy:
name: Push to Transifex
command: |
echo "[https://www.transifex.com]" > ~/.transifexrc'
echo "hostname = https://www.transifex.com" >> ~/.transifexrc'
echo "username = ${TRANSIFEX_USERNAME}" >> ~/.transifexrc'
echo 'password = ${TRANSIFEX_PASSWORD}' >> ~/.transifexrc"
echo "token =" >> ~/.transifexrc'
./docker-run --home make transifex-send'
docker build --target=build --tag=transifex --build-arg=MAJOR_VERSION=${MAJOR_VERSION} .
docker run --name=transifex -ti --rm --detach transifex tail -f /dev/null
docker exec transifex bash -c "echo \"[https://www.transifex.com]\" > ~/.transifexrc"
docker exec transifex bash -c "echo \"hostname = https://www.transifex.com\" >> ~/.transifexrc"
docker exec transifex bash -c "echo \"username = ${TRANSIFEX_USERNAME}\" >> ~/.transifexrc"
docker exec transifex bash -c "echo \"password = ${TRANSIFEX_PASSWORD}\" >> ~/.transifexrc"
docker exec transifex bash -c "echo \"token =\" >> ~/.transifexrc"
docker exec transifex make transifex-send
docker stop transifex
- deploy:
name: Publish documentation to GitHub.io
command: |
Expand Down
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@ admin/Makefile
!.gitattributes
!.pylintrc
!setup.cfg
!lingua.cfg
**/__pycache__/

0 comments on commit eb288bd

Please sign in to comment.