summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorLoïc Blot <nerzhul@users.noreply.github.com>2018-12-12 00:00:08 +0100
committerGitHub <noreply@github.com>2018-12-12 00:00:08 +0100
commitca141ed49101cd1ec42ae358e29f2ea7317c72b4 (patch)
tree544c0a8135b02fb1694fa4cea82ac3d478daf9ab /.gitlab-ci.yml
parentce32a327ff6e4e6810a9377e67eaeb47940b7c4c (diff)
downloadminetest-ca141ed49101cd1ec42ae358e29f2ea7317c72b4.tar.gz
minetest-ca141ed49101cd1ec42ae358e29f2ea7317c72b4.tar.bz2
minetest-ca141ed49101cd1ec42ae358e29f2ea7317c72b4.zip
Add a Dockerfile + gitlab CI build (#7968)
* Add a minetest docker file * Clone minetest_game from git directly
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml13
1 files changed, 13 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index e0d687134..abef1835c 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -10,6 +10,7 @@ stages:
variables:
MINETEST_GAME_REPO: "https://github.com/minetest/minetest_game.git"
+ CONTAINER_IMAGE: registry.gitlab.com/$CI_PROJECT_PATH
.build_template: &build_definition
stage: build
@@ -308,3 +309,15 @@ package:win64:
NO_PACKAGE: "1"
WIN_ARCH: "x86_64"
TOOLCHAIN_OUTPUT: "util/buildbot/toolchain_mingw64.cmake"
+
+package:docker:
+ stage: package
+ image: docker:stable
+ services:
+ - docker:dind
+ before_script:
+ - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN registry.gitlab.com
+ script:
+ - docker build . -t ${CONTAINER_IMAGE}/minetestserver:$CI_COMMIT_REF_NAME -t ${CONTAINER_IMAGE}/minetestserver:latest
+ - docker push ${CONTAINER_IMAGE}/minetestserver:$CI_COMMIT_REF_NAME
+ - docker push ${CONTAINER_IMAGE}/minetestserver:latest