This repository has been archived by the owner on May 11, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
.gitlab-ci.yml
63 lines (52 loc) · 1.65 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
image: docker:git
services:
- docker:dind
before_script:
- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN registry.gitlab.com
- docker login -u gbraad -p $DOCKER_PASSWORD
stages:
- build
- sync
build_fedora:
stage: build
script:
- docker build -t registry.gitlab.com/gbraad/c9ide:f27 ./fedora
- docker push registry.gitlab.com/gbraad/c9ide:f27
clone_fedora:
stage: sync
script:
- docker pull registry.gitlab.com/gbraad/c9ide:f27
- docker tag registry.gitlab.com/gbraad/c9ide:f27 gbraad/c9ide:f27
- docker push gbraad/c9ide:f26
build_fedora_devenv:
stage: build
script:
- docker build -t registry.gitlab.com/gbraad/c9ide:f26-devenv ./fedora-devenv
- docker push registry.gitlab.com/gbraad/c9ide:f26-devenv
build_centos:
stage: build
script:
- docker build -t registry.gitlab.com/gbraad/c9ide:c7 ./centos
- docker push registry.gitlab.com/gbraad/c9ide:c7
clone_centos:
stage: sync
script:
- docker pull registry.gitlab.com/gbraad/c9ide:c7
- docker tag registry.gitlab.com/gbraad/c9ide:c7 gbraad/c9ide:c7
- docker push gbraad/c9ide:c7
build_centos_devenv:
stage: build
script:
- docker build -t registry.gitlab.com/gbraad/c9ide:c7-devenv ./centos-devenv
- docker push registry.gitlab.com/gbraad/c9ide:c7-devenv
build_ubuntu:
stage: build
script:
- docker build -t registry.gitlab.com/gbraad/c9ide:u1604 ./ubuntu
- docker push registry.gitlab.com/gbraad/c9ide:u1604
clone_ubuntu:
stage: sync
script:
- docker pull registry.gitlab.com/gbraad/c9ide:u1604
- docker tag registry.gitlab.com/gbraad/c9ide:u1604 gbraad/c9ide:u1604
- docker push gbraad/c9ide:u1604