diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 012401d..8fedff8 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -120,6 +120,8 @@ gitlab-docs test: *test_build gitlab-docs-lint test: *test_build # Used by go projects for linting https://gitlab.com/gitlab-org/gitlab/blob/master/doc/development/go_guide/index.md#automatic-linting golangci-lint-alpine test: *test_build +# Used by gitlab-operator: https://gitlab.com/gitlab-org/gl-openshift/gitlab-operator +gitlab-operator-build-base test: *test_build # Builds @@ -186,6 +188,8 @@ gitlab-docs: *build_and_deploy gitlab-docs-lint: *build_and_deploy # Used by go projects for linting https://gitlab.com/gitlab-org/gitlab/blob/master/doc/development/go_guide/index.md#automatic-linting golangci-lint-alpine: *build_and_deploy +# Used by gitlab-operator: https://gitlab.com/gitlab-org/gl-openshift/gitlab-operator +gitlab-operator-build-base: *build_and_deploy cache-google-chrome: stage: automation diff --git a/Dockerfile.gitlab-operator-build-base b/Dockerfile.gitlab-operator-build-base new file mode 100644 index 0000000..14350eb --- /dev/null +++ b/Dockerfile.gitlab-operator-build-base @@ -0,0 +1,8 @@ +FROM golang:1.14 +LABEL maintainer="GitLab Distribution Team" \ + description="Build base image for the GitLab Operator project." + +# Install dependencies +RUN go get -u \ + github.com/onsi/ginkgo/ginkgo \ + golang.org/x/lint/golint