minimeteor icon indicating copy to clipboard operation
minimeteor copied to clipboard

Guide for Gitlab CI

Open AVapps opened this issue 8 years ago • 2 comments

Hi, I've seen that you use Gitlab CI. Could you please provide a guide on how to use minimeteor with it? Thanks !

AVapps avatar Jan 11 '17 10:01 AVapps

Hey! Sorry for the late answer. Here's an example .gitlab-ci.yml: https://gitlab.com/aedm/got7-death-pool/blob/master/.gitlab-ci.yml

Basically, the relevant part:

build_docker_image:
  image: gitlab/dind:latest
  stage: build
  script:
  - docker info
  - docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN registry.gitlab.com
  - curl https://aedm.github.io/minimeteor/build.sh | sh -s registry.gitlab.com/aedm/got7-death-pool:$CI_BUILD_REF registry.gitlab.com/aedm/got7-death-pool:latest
  - docker push registry.gitlab.com/aedm/got7-death-pool:$CI_BUILD_REF
  - docker push registry.gitlab.com/aedm/got7-death-pool:latest
  only:
  - release

This builds the Docker image and pushes it to GitLab's registry.

aedm avatar Feb 02 '17 21:02 aedm

Thanks !

Le 2 févr. 2017 à 22:33, Gábor Gyebnár [email protected] a écrit :

Hey! Sorry for the late answer. Here's an example .gitlab-ci.yml: https://gitlab.com/aedm/got7-death-pool/blob/master/.gitlab-ci.yml

Basically, the relevant part:

build_docker_image: image: gitlab/dind:latest stage: build script:

  • docker info
  • docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN registry.gitlab.com
  • curl https://aedm.github.io/minimeteor/build.sh | sh -s registry.gitlab.com/aedm/got7-death-pool:$CI_BUILD_REF registry.gitlab.com/aedm/got7-death-pool:latest
  • docker push registry.gitlab.com/aedm/got7-death-pool:$CI_BUILD_REF
  • docker push registry.gitlab.com/aedm/got7-death-pool:latest only:
  • release This builds the Docker image and pushes it to GitLab's registry.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

AVapps avatar Feb 02 '17 21:02 AVapps