docker: Add a new image for the gst-indent job
authorJordan Petridis <jordan@centricular.com>
Fri, 30 Nov 2018 17:57:13 +0000 (19:57 +0200)
committerJordan Petridis <jordan@centricular.com>
Fri, 30 Nov 2018 18:38:51 +0000 (20:38 +0200)
This is meant run GNU indent along with the gstreamer wrapper
through the codebase and error out for missconfigured code.

Part of https://gitlab.freedesktop.org/gstreamer/gstreamer-project/issues/33

.gitlab-ci.yml
docker/indent/Dockerfile [new file with mode: 0644]

index 3b08107..375dec4 100644 (file)
@@ -73,6 +73,18 @@ alpine amd64 manifest builder docker:
       - 'docker/build_manifest/*'
       - 'gitlab/build_manifest.py'
 
+gst-indent amd64 docker:
+  stage: "build docker"
+  variables:
+    ARCH: "amd64"
+    TAG: "gst-indent"
+    CONTEXT_DIR: "docker/indent/"
+    DOCKERFILE: "docker/indent/Dockerfile"
+  extends: .base
+  only:
+    changes:
+      - 'docker/indent/*'
+
 fedora amd64 docker:
   stage: "build docker"
   variables:
diff --git a/docker/indent/Dockerfile b/docker/indent/Dockerfile
new file mode 100644 (file)
index 0000000..eff3c85
--- /dev/null
@@ -0,0 +1,5 @@
+FROM debian:stretch-slim
+
+RUN apt update -yqq \
+    && apt install -y curl indent git findutils \
+    && rm -R /var/lib/apt/ /var/log/apt/
\ No newline at end of file