Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
AngelGuide
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Himmel
AngelGuide
Commits
928a7ccd
Commit
928a7ccd
authored
5 years ago
by
Chessmaster
Browse files
Options
Downloads
Patches
Plain Diff
first try to build versioned guide
parent
679b03b7
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!7
Tagging PDFs before publishing
Pipeline
#23712
passed
5 years ago
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+28
-7
28 additions, 7 deletions
.gitlab-ci.yml
with
28 additions
and
7 deletions
.gitlab-ci.yml
+
28
−
7
View file @
928a7ccd
...
...
@@ -2,20 +2,42 @@ stages:
-
build
-
publish
build_guide
:
build_
_tagged_
guide
:
stage
:
build
image
:
alpine
script
:
-
apk update
-
apk add ruby asciidoctor
-
gem install asciidoctor-pdf --pre
-
asciidoctor-pdf -o angelguide_en.pdf guide.adoc
-
asciidoctor-pdf -a lang=de -o angelguide_de.pdf guide.adoc
-
export COMMIT_TIME=$(git show -s --format=%ci $CI_COMMIT_SHA | cut -c1-10)
-
asciidoctor-pdf -a revnumber=$CI_COMMIT_TAG -a revdate=$COMMIT_TIME -o angelguide_en.pdf guide.adoc
-
asciidoctor-pdf -a lang=de -a revnumber=$CI_COMMIT_TAG -a revdate=$COMMIT_TIME -o angelguide_de.pdf guide.adoc
artifacts
:
paths
:
-
"
angelguide_en.pdf"
-
"
angelguide_de.pdf"
expire_in
:
12 months
only
:
-
master
-
tags
build__tagged_guide
:
stage
:
build
image
:
alpine
script
:
-
apk update
-
apk add ruby asciidoctor
-
gem install asciidoctor-pdf --pre
-
export COMMIT_TIME=$(git show -s --format=%ci $CI_COMMIT_SHA | cut -c1-10)
-
asciidoctor-pdf -a revnumber=CI_COMMIT_SHORT_SHA -a revdate=$COMMIT_TIME -o angelguide_en.pdf guide.adoc
-
asciidoctor-pdf -a lang=de -a revnumber=CI_COMMIT_SHORT_SHA -a revdate=$COMMIT_TIME -o angelguide_de.pdf guide.adoc
artifacts
:
paths
:
-
"
angelguide_en.pdf"
-
"
angelguide_de.pdf"
expire_in
:
12 months
except
:
-
tags
publish_guide
:
stage
:
publish
...
...
@@ -31,7 +53,6 @@ publish_guide:
-
chmod 644 ~/.ssh/known_hosts
script
:
-
'
rsync
-av
angelguide_*.pdf
$PUBLISH_USER@$PUBLISH_HOST:$PUBLISH_PATH'
rules
:
-
if
:
'
$CI_COMMIT_REF_NAME
==
"master"'
when
:
on_success
-
when
:
never
only
:
-
master
-
tags
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment