diff options
author | 2020-03-01 13:57:24 +0100 | |
---|---|---|
committer | 2020-09-28 20:29:33 +0200 | |
commit | d6c47b6e30a55ba98b4aa66918239e92fee1998a (patch) | |
tree | a75000bc780d676b164a97854f65112988653eb9 | |
parent | e4782aa8bb50b1a69c1ee89eba4491d36d3329df (diff) | |
download | paludis-d6c47b6e30a55ba98b4aa66918239e92fee1998a.tar.gz paludis-d6c47b6e30a55ba98b4aa66918239e92fee1998a.tar.xz |
ci: Add stage to build docker images
-rw-r--r-- | .gitlab-ci.yml | 45 |
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" |