[master] f799737d5 [cci] parameterize which commits to use
Guillaume Quintard
guillaume at varnish-software.com
Sun Dec 29 14:07:08 UTC 2019
commit f799737d5e7f46519d2350006f192a23b76f5319
Author: Guillaume Quintard <guillaume at varnish-software.com>
Date: Sun Dec 29 13:47:35 2019 +0000
[cci] parameterize which commits to use
diff --git a/.circleci/config.yml b/.circleci/config.yml
index 4cf35ed90..81253d7cd 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -1,4 +1,12 @@
version: 2.1
+
+parameters:
+ vc-commit:
+ type: string
+ default: "HEAD"
+ pkg-commit:
+ type: string
+ default: "weekly"
commands:
debian_install_build_deps:
description: Install build dependencies
@@ -81,6 +89,7 @@ jobs:
- 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 at varnish-cache.org])/" ./configure.ac
@@ -108,7 +117,8 @@ jobs:
mkdir -p ~/.ssh
ssh-keyscan -H github.com >> ~/.ssh/known_hosts
echo ${CIRCLE_REPOSITORY_URL}
- git clone --branch=weekly https://github.com/varnishcache/pkg-varnish-cache.git .
+ git clone https://github.com/varnishcache/pkg-varnish-cache.git .
+ git checkout << pipeline.parameters.pkg-commit >>
tar cvzf debian.tar.gz debian --dereference
tar cvzf redhat.tar.gz redhat --dereference
tar cvzf alpine.tar.gz alpine --dereference
More information about the varnish-commit
mailing list