diff options
author | Alexander Kiryukhin <alexander@kiryukhin.su> | 2019-02-01 01:22:02 +0300 |
---|---|---|
committer | Alexander Kiryukhin <alexander@kiryukhin.su> | 2019-02-01 01:22:02 +0300 |
commit | 3467e599acdfc2c4094997a7723126d823c2c3d0 (patch) | |
tree | 03ba2cc5786611a5c25a3a9074d85549b1a6f9b6 /.gitlab-ci.yml | |
parent | 8c499a32b7bb614814da84bace3f3e924be92465 (diff) |
fixes
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml deleted file mode 100644 index fa48cd4..0000000 --- a/.gitlab-ci.yml +++ /dev/null @@ -1,42 +0,0 @@ -image: gitlab/dind - -stages: - - test - - build - - deploy - -variables: - SERVICE_NAME: 'reviewer-bot' - -.build-master: &build-master - stage: build - script: - - docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN $CI_REGISTRY - - docker build --build-arg MODE=$MODE --build-arg PROXY=${PROXY} -t $CI_REGISTRY_IMAGE/$MODE:$CI_PIPELINE_IID -t $CI_REGISTRY_IMAGE/$MODE:latest . - - docker push $CI_REGISTRY_IMAGE/$MODE:$CI_PIPELINE_IID - - docker push $CI_REGISTRY_IMAGE/$MODE:latest - only: - - master - tags: - - docker - -build daemon: - <<: *build-master - variables: - MODE: daemon - -.deploy: &deploy - stage: deploy - script: - - docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN $CI_REGISTRY - - docker pull $CI_REGISTRY_IMAGE/$MODE:$CI_PIPELINE_IID - - docker service update --image $CI_REGISTRY_IMAGE/$MODE:$CI_PIPELINE_IID $SERVICE_NAME-$MODE - tags: - - docker - -deploy daemon: - <<: *deploy - variables: - MODE: daemon - only: - - master
\ No newline at end of file |