aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitlab-ci.yml45
1 files changed, 45 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index a0566e25c..d018b57a9 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,8 +1,25 @@
stages:
+ - docker-images
- build
- test
- clang-tidy
+.dockerimage-template: &dockerimage-template
+ stage: docker-images
+ image: exherbo/exherbo_did
+ tags:
+ - did
+ only:
+ refs:
+ - schedules
+ - web
+ script:
+ - cd ci/docker/${DISTRIBUTION}/paludis-${DISTRIBUTION}-${COMPILER}
+ - dockerd >/dev/null 2>&1 &
+ - docker login -u ${DOCKER_USER} -p ${DOCKER_PASSWORD}
+ - ./build.sh ${VERSION}
+ - docker push paludis/${DISTRIBUTION}-${COMPILER}:${VERSION}
+
.build-template: &build-template
stage: build
image: paludis/${DISTRIBUTION}-${COMPILER}:${VERSION}
@@ -21,6 +38,34 @@ stages:
- cd build-obj
- ctest -V
+docker-images:exherbo-gcc:
+ variables:
+ DISTRIBUTION: "exherbo"
+ COMPILER: "gcc"
+ VERSION: "latest"
+ <<: *dockerimage-template
+
+docker-images:exherbo-gcc-testing:
+ variables:
+ DISTRIBUTION: "exherbo"
+ COMPILER: "gcc"
+ VERSION: "next"
+ <<: *dockerimage-template
+
+docker-images:exherbo-clang:
+ variables:
+ DISTRIBUTION: "exherbo"
+ COMPILER: "clang"
+ VERSION: "latest"
+ <<: *dockerimage-template
+
+docker-images:gentoo-gcc:
+ variables:
+ DISTRIBUTION: "gentoo"
+ COMPILER: "gcc"
+ VERSION: "latest"
+ <<: *dockerimage-template
+
build:exherbo:
variables:
DISTRIBUTION: "exherbo"