Merge branch 'dj-add-danger-ruby-2.6.6' into 'master'

Add danger image with ruby version 2.6.6

See merge request gitlab-org/gitlab-build-images!438
This commit is contained in:
Stan Hu 2021-10-08 17:08:36 +00:00
commit 3f7032db81
2 changed files with 33 additions and 0 deletions

View file

@ -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

View file

@ -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)