Skip to content
Permalink
Browse files

Gitlab CI: docker image rename + add commit id tag

  • Loading branch information...
nerzhul committed Dec 12, 2018
1 parent 3bfb828 commit 1a51455b9ece61124b247d9b3057fa4d22cd7893
Showing with 4 additions and 3 deletions.
  1. +4 −3 .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

0 comments on commit 1a51455

Please sign in to comment.
You can’t perform that action at this time.