Use a variable for the test-image
authorSandro Santilli <strk@kbt.io>
Thu, 21 Jul 2016 17:51:41 +0000 (17:51 +0000)
committerSandro Santilli <strk@kbt.io>
Thu, 21 Jul 2016 17:51:41 +0000 (17:51 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@15019 b70326c6-7e19-0410-871a-916f4a2858ee

.drone.yml

index 570e0712b8e09019cbde4b08e398f6a76d8c34ef..65af6c0cfa61e18471262fadbe767e0a16476313 100644 (file)
@@ -1,18 +1,21 @@
 # See http://readme.drone.io/0.5/usage/overview
+
+# See https://git.osgeo.org/gogs/postgis/postgis-docker
+test-image: &test-image docker.kbt.io/postgis/build-test:trisquel
+
 pipeline:
   clone:
     image: git
     depth: 50
     recursive: false
   build:
-    # See https://git.osgeo.org/gogs/postgis/postgis-docker
-    image: docker.kbt.io/postgis/build-test:trisquel
+    image: *test-image
     commands:
       - ./autogen.sh
       - ./configure CFLAGS="-O0 -Wall"
       - make
   check:
-    image: docker.kbt.io/postgis/build-test:trisquel
+    image: *test-image
     commands:
       - service postgresql start
       - make check