Skip to content
Snippets Groups Projects
Verified Commit 1ccd7042 authored by Felix Eckhofer's avatar Felix Eckhofer :man_dancing:
Browse files

Run rubocop from CI

parent d20fa7bc
No related branches found
No related tags found
No related merge requests found
Pipeline #38390 passed
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: image:
name: gcr.io/kaniko-project/executor:v1.23.2-debug name: gcr.io/kaniko-project/executor:v1.23.2-debug
entrypoint: [""] entrypoint: [""]
stage: build stage: deploy
variables: variables:
DOCKER_IMAGE_NAME: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG DOCKER_IMAGE_NAME: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
script: script:
...@@ -15,3 +29,4 @@ docker-build: ...@@ -15,3 +29,4 @@ docker-build:
- if: $CI_COMMIT_BRANCH - if: $CI_COMMIT_BRANCH
exists: exists:
- Dockerfile - Dockerfile
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment