Starting with just centos7
Following the instructions at https://about.gitlab.com/blog/2019/08/28/building-build-images/.
Haven't set up the environment variables yet.
stages:
+ - build_docker_images
- source
- build
- test
# do not run this job for MRs, developer’s forks, etc.
only:
- master@graphviz/graphviz
+
+build-docker:
+ image: docker:stable
+ services:
+ - docker:dind
+ stage: build_docker_images
+ script:
+ - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
+ - cd ci/centos7
+ - docker build -t $CI_REGISTRY/graphviz/graphviz:centos7 .
+ - docker push $CI_REGISTRY/graphviz/graphviz:centos7
+ only:
+ refs:
+ - master@graphviz/graphviz
+ changes:
+ - ci/centos7/Dockerfile
+ # prevent it re-running on tagged commits
+ except:
+ - tags
+# Touch the file to force a rebuild
FROM centos:7
# Development tools