-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
46 lines (41 loc) · 1.32 KB
/
.gitlab-ci.yml
File metadata and controls
46 lines (41 loc) · 1.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
stages:
- build
- publish
# Fedora 42 is used to ensure compatibility with the tools we need
Generate release notes on commit:
stage: build
image: fedora:42
allow_failure: true # change to non release-notes files ignored
script:
- dnf install -q -y multimarkdown git-core libxslt
- mkdir -p output
- |-
files=`git diff-tree --no-commit-id --name-only -r $CI_COMMIT_SHA | grep release-notes-`
for file in $files; do echo Processing file $file; multimarkdown $file | xsltproc release-notes.xsl - > output/$file.shtml; done
artifacts:
paths:
- "output/*.shtml"
# Fedora 42 is used to ensure compatibility with the tools we need
# process version 9.x, 1x.x
Generate release notes:
stage: build
image: fedora:42
when: manual
script:
- dnf install -q -y multimarkdown git-core libxslt
- mkdir -p output
- |-
echo "Processing $file"
for file in release-notes-{9,1?}.[0-9]; do echo Processing file $file; multimarkdown $file | xsltproc release-notes.xsl - > output/$file.shtml; done
artifacts:
paths:
- "output/*.shtml"
# Publish the release notes to the website
Publish release notes:
stage: publish
needs:
- Generate release notes on commit
tags:
- www.dcache.org
script:
- cp output/*.shtml /data/www/old-dcache.org/downloads/1.9/.