From cbaa4b72f708af5cbea72f53d86a1c4f92e7e08a Mon Sep 17 00:00:00 2001 From: Michael Gutbier <migu@cgan.de> Date: Mon, 23 Dec 2019 00:30:41 +0100 Subject: [PATCH] call build script from pipeline job --- .gitlab-ci.yml | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index cf0d40c..47ab212 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -18,10 +18,7 @@ stages: build_guide_by_tag: extends: .template:build_guide script: - - export COMMIT_DATE=$(git show -s --format=%ci $CI_COMMIT_SHA | cut -c1-10) - - export REVISION=$CI_COMMIT_TAG - - asciidoctor-pdf -a revnumber=$REVISION -a revdate=$COMMIT_DATE -o angelguide_en.pdf guide.adoc - - asciidoctor-pdf -a revnumber=$REVISION -a revdate=$COMMIT_DATE -o angelguide_de.pdf -a lang=de guide.adoc + - ./build.sh $CI_COMMIT_TAG rules: - if: $CI_COMMIT_TAG != null when: always @@ -29,10 +26,7 @@ build_guide_by_tag: build_guide: extends: .template:build_guide script: - - export COMMIT_DATE=$(git show -s --format=%ci $CI_COMMIT_SHA | cut -c1-10) - - export REVISION=$CI_COMMIT_SHORT_SHA - - asciidoctor-pdf -a revnumber=$REVISION -a revdate=$COMMIT_DATE -o angelguide_en.pdf guide.adoc - - asciidoctor-pdf -a revnumber=$REVISION -a revdate=$COMMIT_DATE -o angelguide_de.pdf -a lang=de guide.adoc + - ./build.sh $CI_COMMIT_SHORT_SHA rules: - if: $CI_COMMIT_TAG == null when: always -- GitLab