From 843aff46e498159771907d14c640b71446798096 Mon Sep 17 00:00:00 2001
From: Ubbo Veentjer <veentjer@sub.uni-goettingen.de>
Date: Sun, 12 Jun 2022 23:55:57 +0200
Subject: [PATCH] include TEI stylesheets in container, aggregator version as
 tag for container image

---
 .gitlab-ci.yml | 2 ++
 Dockerfile     | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 8efc788..7dd4b3a 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -109,7 +109,9 @@ tag_container_image:
   before_script:
     - *crane-setup
   script:
+    - source $VARIABLES_FILE
     - crane tag $CONTAINER_IMAGE latest
+    - crane tag $CONTAINER_IMAGE $PVERSION-$CI_COMMIT_SHORT_SHA
 
 # Deploy DEB files to APTLY repository.
 # All four DEB files are deployed with SNAPSHOT version (branch: develop)!
diff --git a/Dockerfile b/Dockerfile
index dfc0539..be1c6c5 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -2,6 +2,8 @@ FROM maven:3-jdk-8 as builder
 
 COPY . /build
 WORKDIR /build
+# clone the tei stylesheets
+RUN git submodule update --recursive --init
 RUN mvn package -Dmaven.test.skip=true -P \!textgrid.deb
 
 
-- 
GitLab