From b57f977bf9eda6ed72de469b01a1744f6be22d2e Mon Sep 17 00:00:00 2001
From: Tom Teichler <tom.teichler@teckids.org>
Date: Tue, 15 Nov 2022 18:51:09 +0100
Subject: [PATCH] Add ci config

---
 .gitlab-ci.yml | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)
 create mode 100644 .gitlab-ci.yml

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000..88bb7d5
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,28 @@
+.earthly_prepare:
+  tags:
+    - privileged
+  image:
+    name: earthly/earthly:v0.6.29@sha256:81eaf447132541b930d64cbf3308ba07303928a073c602e81a237799b60f254d
+    entrypoint: [ "sh", "-c" ]
+  before_script:
+    - earthly --version
+    - cat ${EARTHLY_CONFIG}
+  variables:
+    FORCE_COLOR: "1"
+    EARTHLY_CONFIG: "/etc/earthly/config.yaml"
+    EARTHLY_STRICT: "true"
+  interruptible: true
+  retry:
+    max: 2
+    when:
+      - runner_system_failure
+      - stuck_or_timeout_failure
+
+test:
+  stage: test
+  extends: [.earthly_prepare]
+  script:
+    - earthly --no-output -P +test
+  only:
+    refs:
+      - merge_requests
-- 
GitLab