From 568e03bc3811f6dbe9458aabad35160f6836a74d Mon Sep 17 00:00:00 2001
From: Timm Fitschen <t.fitschen@indiscale.com>
Date: Wed, 2 Jun 2021 02:17:03 +0200
Subject: [PATCH] WIP: pipeline

---
 .docker/Dockerfile | 2 --
 .gitlab-ci.yml     | 8 ++++++++
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/.docker/Dockerfile b/.docker/Dockerfile
index 6e130ee..721b1ee 100644
--- a/.docker/Dockerfile
+++ b/.docker/Dockerfile
@@ -5,8 +5,6 @@ RUN apt-get update
 RUN apt-get install -y clang-format-11
 RUN apt-get install -y golang-1.15
 
-RUN /usr/lib/go-1.5/bin/go install github.com/pseudomuto/protoc-gen-doc/cmd/protoc-gen-doc@v1.4.1
-
 RUN apt-get install -y curl
 RUN apt-get install -y cmake
 RUN apt-get install -y python3-pip
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 587cb24..8a6ab4b 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -26,10 +26,17 @@ variables:
 image: $CI_REGISTRY_IMAGE
 
 stages:
+  - testgo
   - setup
   - test
   - deploy
 
+testgo:
+  tags: [ docker ]
+  stage: testgo
+  script:
+    - go install github.com/pseudomuto/protoc-gen-doc/cmd/protoc-gen-doc@v1.4.1
+
 # Build a docker image in which tests for this repository can run
 build-testenv:
   tags: [ cached-dind ]
@@ -69,6 +76,7 @@ pages:
   #only:
     #- web
   script:
+    - go install github.com/pseudomuto/protoc-gen-doc/cmd/protoc-gen-doc@v1.4.1
     - mkdir -p build
     - cd build
     - cmake ..
-- 
GitLab