summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorMax Wittig <max.wittig95@gmail.com>2019-06-10 14:25:51 +0200
committerMax Wittig <max.wittig95@gmail.com>2019-06-10 14:31:42 +0200
commit95c9b6dd489fc15c7dfceffca909917f4f3d4312 (patch)
treefb4e6769d24f21f0e238620c56e1a981c92133cc /.gitlab-ci.yml
parente45a6e2618db30834f732c5a7bc9f1c038c45c31 (diff)
downloadgitlab-95c9b6dd489fc15c7dfceffca909917f4f3d4312.tar.gz
chore(ci): add automatic GitLab image pusheschore/enable-gitlab-ci-builds
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml37
1 files changed, 24 insertions, 13 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index c50f2aa..28a9c75 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -26,19 +26,19 @@ black_lint:
except:
- master
-#build_test_image: # Currently hangs forever, because of GitLab Runner infrastructure issues
-# stage: build-test-image
-# image:
-# name: gcr.io/kaniko-project/executor:debug
-# entrypoint: [""]
-# script:
-# - echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
-# - /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/tools/Dockerfile-test --destination $CI_REGISTRY_IMAGE:test
-# only:
-# refs:
-# - master
-# changes:
-# - tools/
+build_test_image:
+ stage: build-test-image
+ image:
+ name: gcr.io/kaniko-project/executor:debug
+ entrypoint: [""]
+ script:
+ - echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
+ - /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/tools/Dockerfile-test --destination $CI_REGISTRY_IMAGE:test
+ only:
+ refs:
+ - master
+ changes:
+ - tools/
.tox_includes: &tox_includes
stage: test
@@ -103,3 +103,14 @@ deploy:
- twine upload --skip-existing -u $TWINE_USERNAME -p $TWINE_PASSWORD dist/*
only:
- tags
+
+deploy_image:
+ stage: deploy
+ image:
+ name: gcr.io/kaniko-project/executor:debug
+ entrypoint: [""]
+ script:
+ - echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
+ - /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --destination $CI_REGISTRY_IMAGE:$CI_COMMIT_TAG
+ only:
+ - tags