From c9c1b74e48c54c88f4a005b80b977551f58e0c3a Mon Sep 17 00:00:00 2001 From: Malaber <32635600+Malaber@users.noreply.github.com> Date: Thu, 20 Jun 2019 20:16:37 +0200 Subject: [PATCH] Swap build and test stage --- .gitlab-ci.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 6114318..b77a92a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,16 +1,8 @@ stages: - - test - build + - test - deploy -rails spec: - stage: test - image: ruby:2.6.2 - script: - - bundle install --path /cache - - bundle exec rails db:migrate RAILS_ENV=test - - bundle exec rails spec - kaniko: stage: build image: @@ -22,6 +14,14 @@ kaniko: - /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/docker/development/Dockerfile --destination $CI_REGISTRY_IMAGE/development --destination $CI_REGISTRY_IMAGE/development/commits:$CI_COMMIT_SHA --destination $CI_REGISTRY_IMAGE/development/branches:$CI_COMMIT_REF_SLUG - /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/docker/test/Dockerfile --destination $CI_REGISTRY_IMAGE/test --destination $CI_REGISTRY_IMAGE/test/commits:$CI_COMMIT_SHA --destination $CI_REGISTRY_IMAGE/test/branches:$CI_COMMIT_REF_SLUG +rails spec: + stage: test + image: ruby:2.6.2 + script: + - bundle install --path /cache + - bundle exec rails db:migrate RAILS_ENV=test + - bundle exec rails spec + kubernetes: stage: deploy only: