forked from kutelev/gost_forms
-
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
3 changed files
with
66 additions
and
0 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,29 @@ | ||
stages: | ||
- build | ||
|
||
build:docker_image: | ||
stage: build | ||
script: | ||
- docker build --no-cache -t $CI_REGISTRY/$CI_PROJECT_PATH:$CI_COMMIT_REF_NAME . | ||
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY | ||
- docker push $CI_REGISTRY/$(echo $CI_PROJECT_PATH | tr 'A-Z' 'a-z'):$CI_COMMIT_REF_NAME | ||
- docker logout $CI_REGISTRY | ||
tags: | ||
- fictional-goggles | ||
when: manual | ||
|
||
build:documents: | ||
stage: build | ||
image: $CI_REGISTRY/$CI_PROJECT_PATH:$CI_COMMIT_REF_NAME | ||
script: | ||
- apt-get install -y git | ||
- git config core.quotePath false # Witout this line "untracked: true" will find no artifacts! | ||
- ls -1 | egrep "^.{4}\.[0-9]{6}\.[0-9]{3}\ \([А-Яа-я ]+\)$" | xargs -n1 -I{} bash -c "cd \"{}\"; make" | ||
- find ./ -type f -printf "%P\n" | egrep "[А-Я]{4}\.[0-9]{6}\.[0-9]{3}\ ([0-9А-Я]+\ )?\([А-Яа-я ]+\)\.pdf" > .gitignore | ||
- git add .gitignore | ||
- git clean -f -d -q | ||
- git rm -f .gitignore | ||
tags: | ||
- docker | ||
artifacts: | ||
untracked: true |
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,16 @@ | ||
FROM ubuntu:14.04 | ||
MAINTAINER Alexander Kutelev <[email protected]> | ||
RUN apt-get update && apt-get -y upgrade; \ | ||
echo ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true | debconf-set-selections; \ | ||
apt-get install -y g++ make inkscape pdftk texlive-xetex texlive-latex-recommended texlive-latex-extra texlive-fonts-recommended texlive-lang-cyrillic locales msttcorefonts; \ | ||
apt-get install -y git wget; \ | ||
locale-gen en_US.UTF-8; dpkg-reconfigure --frontend=noninteractive locales; update-locale LANG=en_US.UTF-8; \ | ||
mkdir /root/.fonts; \ | ||
cd /root/.fonts; \ | ||
wget https://github.com/kutelev/gost_forms/blob/master/fonts/gost_a.ttf?raw=true -q -O gost_a.ttf; \ | ||
wget https://github.com/kutelev/gost_forms/blob/master/fonts/gost_ab.ttf?raw=true -q -O gost_ab.ttf; \ | ||
wget https://github.com/kutelev/gost_forms/blob/master/fonts/gost_abi.ttf?raw=true -q -O gost_abi.ttf; \ | ||
wget https://github.com/kutelev/gost_forms/blob/master/fonts/gost_ai.ttf?raw=true -q -O gost_ai.ttf; \ | ||
fc-cache -fv | ||
ENV LC_ALL=en_US.UTF-8 | ||
WORKDIR "/root/workdir" |
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