-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitlab-ci.yml
32 lines (31 loc) · 945 Bytes
/
.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
# This file is a template, and might need editing before it works on your project.
build-starbound:
# Official docker image.
image: docker:latest
stage: build
services:
- docker:dind
before_script:
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
script:
- DOCKER_IMAGE=registry.gitlab.com/kamaradeivanov/dockergames/starbound:latest
- cd starbound
- docker build --pull -t "$DOCKER_IMAGE" .
- docker push "$DOCKER_IMAGE"
only:
- master
build-projectz:
# Official docker image.
image: docker:latest
stage: build
services:
- docker:dind
before_script:
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
script:
- DOCKER_IMAGE=registry.gitlab.com/kamaradeivanov/dockergames/project-zomboid:latest
- cd project-zomboid
- docker build --pull -t "$DOCKER_IMAGE" .
- docker push "$DOCKER_IMAGE"
only:
- master