Skip to content
Snippets Groups Projects
Commit cbaa4b72 authored by migu's avatar migu
Browse files

call build script from pipeline job

parent a377588d
No related branches found
No related tags found
1 merge request!7Tagging PDFs before publishing
Pipeline #23723 passed
...@@ -18,10 +18,7 @@ stages: ...@@ -18,10 +18,7 @@ stages:
build_guide_by_tag: build_guide_by_tag:
extends: .template:build_guide extends: .template:build_guide
script: script:
- export COMMIT_DATE=$(git show -s --format=%ci $CI_COMMIT_SHA | cut -c1-10) - ./build.sh $CI_COMMIT_TAG
- 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
rules: rules:
- if: $CI_COMMIT_TAG != null - if: $CI_COMMIT_TAG != null
when: always when: always
...@@ -29,10 +26,7 @@ build_guide_by_tag: ...@@ -29,10 +26,7 @@ build_guide_by_tag:
build_guide: build_guide:
extends: .template:build_guide extends: .template:build_guide
script: script:
- export COMMIT_DATE=$(git show -s --format=%ci $CI_COMMIT_SHA | cut -c1-10) - ./build.sh $CI_COMMIT_SHORT_SHA
- 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
rules: rules:
- if: $CI_COMMIT_TAG == null - if: $CI_COMMIT_TAG == null
when: always when: always
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment