Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
d2469496
Commit
d2469496
authored
Sep 15, 2021
by
Martin Blix Grydeland
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adjust CircleCI config to take dist-url as an arg
parent
fd41231a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
41 additions
and
12 deletions
+41
-12
config.yml
.circleci/config.yml
+41
-12
No files found.
.circleci/config.yml
View file @
d2469496
...
...
@@ -7,6 +7,12 @@ parameters:
pkg-commit
:
type
:
string
default
:
"
7.0"
dist-url
:
type
:
string
default
:
"
"
dist-url-sha256
:
type
:
string
default
:
"
"
configure_args
:
type
:
string
default
:
|
...
...
@@ -17,7 +23,7 @@ parameters:
--with-persistent-storage \
jobs
:
dist
:
description
:
Build
s
varnish-x.y.z.tar.gz that is used later for the packaging jobs
description
:
Build
or download
varnish-x.y.z.tar.gz that is used later for the packaging jobs
docker
:
-
image
:
centos:7
steps
:
...
...
@@ -37,17 +43,40 @@ jobs:
python3 \
python-sphinx
-
checkout
-
run
:
name
:
Create the dist tarball
command
:
|
git checkout << pipeline.parameters.vc-commit >>
# if version is "trunk", it's a weekly tarball, override the version
if grep 'AC_INIT.*trunk.*' ./configure.ac; then
sed -i -e "s/^AC_INIT.*trunk.*/AC_INIT([Varnish], [$(date +%Y%m%d)], [varnish-dev@varnish-cache.org])/" ./configure.ac
touch .is_weekly
fi
./autogen.des --quiet
make dist -j 16
-
when
:
condition
:
<< pipeline.parameters.dist-url >>
steps
:
-
run
:
name
:
Download the dist tarball
command
:
|
curl -s << pipeline.parameters.dist-url >> -o varnish-dist.tar.gz
-
when
:
condition
:
<< pipeline.parameters.dist-url-sha256 >>
steps
:
-
run
:
name
:
Verify downloaded tarball
command
:
|
echo "<< pipeline.parameters.dist-url-sha256 >> varnish-dist.tar.gz" | sha256sum -c
-run
:
name
:
Rename the dist tarball by parsed version
command
:
|
mkdir parse-version-tmp
cd parse-version-tmp
tar xzf ../varnish-dist.tar.gz
VERSION=$(varnish-*/configure --version | awk 'NR == 1 {print $NF}')
cd ..
mv -v varnish-dist.tar.gz varnish-${VERSION}.tar.gz
-
unless
:
condition
:
<< pipeline.parameters.dist-url >>
steps
:
-
run
:
name
:
Create the dist tarball
command
:
|
git checkout << pipeline.parameters.vc-commit >>
# Locally built tarballs are always weekly - built with date in package name
touch .is_weekly
./autogen.des --quiet
make dist -j 16
-
persist_to_workspace
:
root
:
.
paths
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment