-
Notifications
You must be signed in to change notification settings - Fork 67
/
.gitlab-ci.yml
102 lines (84 loc) · 1.88 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
variables:
# LATEST_VER: mumie/app:latest
# MAJOR_VER: mumie/app:2
KUBERNETES_CPU_REQUEST: 500m
KUBERNETES_CPU_LIMIT: 1500m
KUBERNETES_MEMORY_REQUEST: 1024Mi
KUBERNETES_MEMORY_LIMIT: 3072Mi
stages:
- build
- push
include:
- '/.gitlab-ci.docker.yml'
- '/.gitlab-ci.kaniko.yml'
# before_script:
# - echo "starting new job in $REGPATH"
# - docker info
#- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
# jobs ################################
build:jdownloader:
extends: .kaniko_build_template
variables:
ENV: jdownloader
build:rclone-mount:
extends: .kaniko_build_template
variables:
ENV: rclone-mount
build:sabnzbdvpn:
extends: .kaniko_build_template
variables:
ENV: sabnzbdvpn
build:smb-mount:
extends: .kaniko_build_template
variables:
ENV: smb-mount
#docker_build2:
# stage: build
# script:
# - docker info
# - docker build -t $LATEST_VER -t $MAJOR_VER .
# docker_test1:
# stage: test
# image: docker:latest
# services:
# - docker:dind
# script:
# - echo "finished"
# # do some test
# #- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
# only:
# refs:
# - master
# - dev
# docker_push1:
# stage: push
# image: docker:latest
# services:
# - docker:dind
# script:
# - echo "manual job done"
# # push image to registry
# #- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
# only:
# refs:
# - master
# - dev
# when: manual
push:rclone-mount:
extends: .crane_push_docker_template
variables:
ENV: rclone-mount
needs:
- job: build:rclone-mount
push:sabnzbdvpn:
extends: .crane_push_docker_template
variables:
ENV: sabnzbdvpn
needs:
- job: build:sabnzbdvpn
push:smb-mount:
extends: .crane_push_docker_template
variables:
ENV: smb-mount
needs:
- job: build:smb-mount