Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jordimas committed Jul 30, 2023
1 parent 92e7e04 commit 8dc43ad
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ build:
- echo "build cfg 1 - ${TRANSIFEX_CFG}"
# Copy GitLab cfg
- cp ${TRANSIFEX_CFG} transifex.cfg
- docker build --build-arg TRANSIFEX_CFG=transifex.cfg --tag tmt-builder --tag $IMAGE_NAME . -f $DOCKER_PATH
- docker build --tag tmt-builder --tag $IMAGE_NAME . -f $DOCKER_PATH
- docker push $IMAGE_NAME

build-languagetool:
Expand Down
6 changes: 2 additions & 4 deletions docker/dockerfile-builder
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ FROM python:3.9.10-slim-bullseye

ENV DIR /srv/dev
ENV DIR_TMT_GIT /srv/dev/tm-git
ARG TRANSIFEX_CFG=

RUN apt-get update && apt-get install python3-dev libhunspell-dev libyaml-dev gettext zip mercurial bzr ruby git curl wget g++ subversion bzip2 -y
RUN curl -o- https://raw.githubusercontent.com/transifex/cli/master/install.sh | bash && mv ./tx /usr/bin/
Expand Down Expand Up @@ -34,9 +33,8 @@ COPY cfg/ $DIR_TMT_GIT/cfg/
COPY docker/ $DIR_TMT_GIT/docker/
COPY integration-tests/ $DIR_TMT_GIT/integration-tests/

RUN echo val:"$TRANSIFEX_CFG"
COPY $TRANSIFEX_CFG ~./transifexrc
RUN ls ~./transifexrc
# GitLab CI/CD
COPY *transifex.cfg /root/.transifexrc

# What get's executed on Run
ENTRYPOINT bash $DIR_TMT_GIT/docker/entry-point-builder.sh $DIR $DIR_TMT_GIT
1 change: 1 addition & 0 deletions docker/entry-point-builder.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ if [[ -e $PRESERVE_CROSSEXECS/translation-memories/ ]]; then
fi

ls -l ~/.transifexrc
bash
if [ ! -f ~/.transifexrc ]; then
echo "Removing Transifex projects"
grep -l "type.*transifex" cfg/projects/*.json | xargs rm -f
Expand Down

0 comments on commit 8dc43ad

Please sign in to comment.