diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8d90b8d..70deb69 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -135,6 +135,7 @@ ruby-2.7-git-2.31-chrome-89-node-12.22-yarn-1.22-docker-19.03.1: *test_custom alpine-helm test: *test_build danger test: *test_build +danger-ruby-2.6.6 test: *test_build gitlab-charts-build-base test: *test_build gitlab-charts-build-base-helm-3 test: *test_build gitlab-helm3.5-kubectl1.17 test: *test_build @@ -233,6 +234,7 @@ ruby-2.7-git-2.31-chrome-89-node-12.22-yarn-1.22-docker-19.03.1 push: *build_and alpine-helm push: *build_and_deploy danger push: *build_and_deploy +danger-ruby-2.6.6 push: *build_and_deploy gitlab-charts-build-base push: *build_and_deploy gitlab-charts-build-base-helm-3 push: *build_and_deploy gitlab-helm3.5-kubectl1.17 push: *build_and_deploy diff --git a/Dockerfile.danger-ruby-2.6.6 b/Dockerfile.danger-ruby-2.6.6 new file mode 100644 index 0000000..ae74d26 --- /dev/null +++ b/Dockerfile.danger-ruby-2.6.6 @@ -0,0 +1,31 @@ +FROM ruby:2.6.6-buster +MAINTAINER GitLab Quality Team + +# Danger manipulates git diff output. When a unicode char is present in the diff, it chokes with +# (Danger::DSLError) [!] Invalid `Dangerfile` file: invalid byte sequence in US-ASCII +# eg. https://gitlab.com/gitlab-org/gitlab-foss/-/jobs/275286625 +ENV LC_ALL "C.UTF-8" + +ENV NODE_VERSION=14.17.2 +ENV YARN_VERSION=1.22.10 +ENV GITLAB_GEM_VERSION=4.17.0 +ENV DANGER_GEM_VERSION=8.3.1 +ENV DANGER_GITLAB_GEM_VERSION=8.0.0 + +ADD /scripts/ /scripts/ + +RUN apt-get update \ + && apt-get install -y git \ + && /scripts/install-node ${NODE_VERSION} ${YARN_VERSION} \ + && yarn global add alex@9 \ + && yarn cache clean \ + && apt-get autoremove -yq \ + && apt-get clean -yqq \ + && rm -rf /var/lib/apt/lists/* \ + && gem install gitlab --version ${GITLAB_GEM_VERSION} --no-document \ + && gem install danger --version ${DANGER_GEM_VERSION} --no-document \ + && gem install danger-gitlab --version ${DANGER_GITLAB_GEM_VERSION} --no-document \ + && git version \ + && echo "node version " $(node --version) \ + && echo "yarn version " $(yarn --version) \ + && echo "Danger version " $(danger --version)