Skip to content
Snippets Groups Projects
Commit 2bbe2e7a authored by Dmytro Bogatov's avatar Dmytro Bogatov :two_hearts:
Browse files

Dix.

parent b08e311a
No related branches found
No related tags found
No related merge requests found
Pipeline #15365 failed
...@@ -11,7 +11,6 @@ variables: ...@@ -11,7 +11,6 @@ variables:
# username is always "review" (without quotes) # username is always "review" (without quotes)
CI_REF: &ref 991787dfc325b9d149cd609fbd758bf97158bcc0 CI_REF: &ref 991787dfc325b9d149cd609fbd758bf97158bcc0
BLC_EXCLUDE: "-s www.linkedin.com" BLC_EXCLUDE: "-s www.linkedin.com"
BUILD_ARGS: ""
include: include:
# VARIABLES # VARIABLES
...@@ -36,11 +35,11 @@ include: ...@@ -36,11 +35,11 @@ include:
file: "latex-report/metrics.yml" file: "latex-report/metrics.yml"
ref: *ref ref: *ref
# BUILD # # BUILD
# https://git.dbogatov.org/templates/ci-snippets/-/blob/master/latex/build.yml # # https://git.dbogatov.org/templates/ci-snippets/-/blob/master/latex/build.yml
- project: "templates/ci-snippets" # - project: "templates/ci-snippets"
file: "latex/build.yml" # file: "latex/build.yml"
ref: *ref # ref: *ref
# TEST # TEST
# https://git.dbogatov.org/templates/ci-snippets/-/blob/master/latex-report/embedded-fonts.yml # https://git.dbogatov.org/templates/ci-snippets/-/blob/master/latex-report/embedded-fonts.yml
...@@ -73,3 +72,34 @@ website-deploy: ...@@ -73,3 +72,34 @@ website-deploy:
- if: $CI_COMMIT_BRANCH == "master" - if: $CI_COMMIT_BRANCH == "master"
when: on_success when: on_success
- when: never - when: never
build:
image: dbogatov/docker-images:latex-latest
stage: build
script:
- args="${args:-' '}"
- echo "${#args[@]}"
- echo $BUILD_ARGS
- IFS='|' read -r -a args <<< "$BUILD_ARGS"
- |
for arg in "${args[@]}"
do
echo Building for "build.sh $arg"
bash ./$LATEX_BUILD/build.sh $arg
done
- PAGES=$(wget -q -O - https://git.dbogatov.org/templates/ci-snippets/raw/master/page-count.sh | bash /dev/stdin ${PWD}/$LATEX_DIST/)
- |
echo "Max pages: $PAGES"
- echo "PAGES_COUNT=$PAGES" >> pages-count.env
artifacts:
expire_in: 30 min
paths:
- "$LATEX_DIST/*.pdf"
reports:
dotenv: pages-count.env
rules:
- if: "$DISABLE_REGULAR_PIPELINE"
when: never
- when: on_success
tags:
- docker
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment