summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorLoïc Blot <nerzhul@users.noreply.github.com>2018-12-12 09:47:32 +0100
committerGitHub <noreply@github.com>2018-12-12 09:47:32 +0100
commit1a51455b9ece61124b247d9b3057fa4d22cd7893 (patch)
tree919eb4652e9405984d5ca7026b4723ece6252c8e /.gitlab-ci.yml
parent3bfb8284b868c580b5ec15e732c1d6b379168c2f (diff)
downloadminetest-1a51455b9ece61124b247d9b3057fa4d22cd7893.tar.gz
minetest-1a51455b9ece61124b247d9b3057fa4d22cd7893.tar.bz2
minetest-1a51455b9ece61124b247d9b3057fa4d22cd7893.zip
Gitlab CI: docker image rename + add commit id tag
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml7
1 files changed, 4 insertions, 3 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index abef1835c..b957fdb32 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -318,6 +318,7 @@ package:docker:
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
+ - docker build . -t ${CONTAINER_IMAGE}/server:$CI_COMMIT_SHA -t ${CONTAINER_IMAGE}/server:$CI_COMMIT_REF_NAME -t ${CONTAINER_IMAGE}/server:latest
+ - docker push ${CONTAINER_IMAGE}/server:$CI_COMMIT_SHA
+ - docker push ${CONTAINER_IMAGE}/server:$CI_COMMIT_REF_NAME
+ - docker push ${CONTAINER_IMAGE}/server:latest