.gitlab-ci.yml 560 Bytes
Newer Older
jcorvi's avatar
jcorvi committed
1
2
3
4
5
6
7
8
variables:
  DOCKER_USER: javicorvi
  DOCKER_BUILD: $DOCKER_USER/$CI_PROJECT_NAME:$CI_COMMIT_REF_NAME
stages:
  - build
build_docker_image:
  stage: build
  script:
jcorvi's avatar
jcorvi committed
9
10
11
12
13
14
    #- docker login -u javicorvi -p $DOCKER_PASS
    #- docker build -t registry.gitlab.bsc.es/ .
    #- docker push $DOCKER_BUILD
    - docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN registry.gitlab.bsc.es
    - docker build -t registry.gitlab.bsc.es/inb/etransafe/pretox-rest-api:develop .
    - docker push registry.gitlab.bsc.es/inb/etransafe/pretox-rest-api:develop
jcorvi's avatar
jcorvi committed
15
16
  tags:
    - build