.gitlab-ci.yml 363 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
stages:
  - build_image

build_image:
  stage: build_image
  before_script:
    - export REG_NAME=registry.getnoc.com
    - export CONTAINER_NAME=$CI_REGISTRY_IMAGE:$CI_BUILD_REF_NAME
  script:
    - docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN $REG_NAME 
    - docker build --pull -t $CONTAINER_NAME .
    - docker push $CONTAINER_NAME
  tags:
    - shell