-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
86 lines (79 loc) · 2.68 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
image: registry.int.jrtashjian.com/jrtashjian/cmangos-docker/base-image
variables:
CMANGOS_CORE: "classic"
BUILD_LOGIN_SERVER: "OFF"
BUILD_GAME_SERVER: "ON"
BUILD_PLAYERBOT: "ON"
BUILD_AHBOT: "ON"
BUILD_METRICS: "ON"
stages:
- build
compile:
stage: build
script:
- git clone https://github.com/cmangos/mangos-$CMANGOS_CORE.git
- cmake ./mangos-$CMANGOS_CORE -DCMAKE_INSTALL_PREFIX=./binaries -DBUILD_LOGIN_SERVER=$BUILD_LOGIN_SERVER -DBUILD_GAME_SERVER=$BUILD_GAME_SERVER -DBUILD_PLAYERBOT=$BUILD_PLAYERBOT -DBUILD_AHBOT=$BUILD_AHBOT -DBUILD_METRICS=$BUILD_METRICS
- make -j $(nproc)
- make install
artifacts:
name: cmangos-$CMANGOS_CORE
paths:
- binaries/
only:
- master # Run the pipeline only on the master branch, adjust as needed
# build-extractors:
# image: docker:cli
# services:
# - docker:dind
# parallel:
# matrix:
# - CORE: classic
# - CORE: tbc
# - CORE: wotlk
# variables:
# DOCKER_IMAGE_NAME: $CI_REGISTRY_IMAGE/extractors-$CORE:latest
# before_script:
# - docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
# script:
# - docker build --no-cache -t $DOCKER_IMAGE_NAME ./extractors --build-arg CMANGOS_CORE=$CORE $BUILD_ARGS
# - docker push $DOCKER_IMAGE_NAME
# build-realmd:
# image: docker:cli
# services:
# - docker:dind
# parallel:
# matrix:
# - CORE: classic
# - CORE: tbc
# - CORE: wotlk
# variables:
# DOCKER_IMAGE_NAME: $CI_REGISTRY_IMAGE/realmd-$CORE:latest
# before_script:
# - docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
# script:
# - docker build --no-cache -t $DOCKER_IMAGE_NAME ./realmd --build-arg CMANGOS_CORE=$CORE $BUILD_ARGS
# - docker push $DOCKER_IMAGE_NAME
# build-mangosd:
# image: docker:cli
# services:
# - docker:dind
# parallel:
# matrix:
# - IMAGE_TAG: latest
# CORE: [ classic, tbc, wotlk ]
# - IMAGE_TAG: with-playerbot
# CORE: [ classic, tbc, wotlk ]
# BUILD_ARGS: --build-arg BUILD_PLAYERBOT=ON
# - IMAGE_TAG: with-ahbot
# CORE: [ classic, tbc, wotlk ]
# BUILD_ARGS: --build-arg BUILD_AHBOT=ON
# - IMAGE_TAG: with-playerbot-ahbot
# CORE: [ classic, tbc, wotlk ]
# BUILD_ARGS: --build-arg BUILD_PLAYERBOT=ON --build-arg BUILD_AHBOT=ON
# variables:
# DOCKER_IMAGE_NAME: $CI_REGISTRY_IMAGE/mangosd-$CORE:$IMAGE_TAG
# before_script:
# - docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
# script:
# - docker build --no-cache -t $DOCKER_IMAGE_NAME ./mangosd --build-arg CMANGOS_CORE=$CORE $BUILD_ARGS
# - docker push $DOCKER_IMAGE_NAME