diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e11663dc8a1d2571ee4dc1be2fde4555ded12adc..3d0dcd56a8e2010c6f364a2f5bcb0611adbfaabf 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,8 +1,22 @@ -docker-build: +rubocop: + image: registry.docker.com/library/ruby:3.4.2 + stage: test + cache: + paths: + - vendor/bundle + before_script: + - ruby -v + - bundle config set --local deployment true # Install dependencies into ./vendor/bundle + - bundle config set --local with test # bundle install --with=test + - bundle install -j $(nproc) + script: + - bundle exec rubocop + +docker-image: image: name: gcr.io/kaniko-project/executor:v1.23.2-debug entrypoint: [""] - stage: build + stage: deploy variables: DOCKER_IMAGE_NAME: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG script: @@ -15,3 +29,4 @@ docker-build: - if: $CI_COMMIT_BRANCH exists: - Dockerfile +