From 5340f15ffea137bb95a6727d020c5eb43639ffd2 Mon Sep 17 00:00:00 2001
From: Johannes Meyer <johannes.meyer@icinga.com>
Date: Fri, 3 Jun 2022 14:58:33 +0200
Subject: [PATCH] Build snapshots

---
 .gitlab-ci.yml |  2 +-
 get_snapshot   | 15 +++++++++++++++
 2 files changed, 16 insertions(+), 1 deletion(-)
 create mode 100755 get_snapshot

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 513d7da..44709e5 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -6,7 +6,7 @@ stages:
 variables:
   DOCKER_IMAGE_BASE: registry.icinga.com/build-docker
   CI_SKIP_USCAN: "yes"
-  #ICINGA_BUILD_TYPE: snapshot
+  ICINGA_BUILD_TYPE: snapshot
   #ICINGA_BUILD_UPSTREAM_BRANCH:
 
 .build: &build
diff --git a/get_snapshot b/get_snapshot
new file mode 100755
index 0000000..156b4d5
--- /dev/null
+++ b/get_snapshot
@@ -0,0 +1,15 @@
+#!/bin/bash
+
+PROJECT='icinga-php-common'
+
+package_version="1.0.0"
+commit=$(date +%s)
+tarball="icinga-php-common_empty.orig.tar.gz"
+branch="bogus"
+
+printf '%s\t%s\t%s\t%s' \
+  "${package_version}" \
+  "${commit}" \
+  "${tarball}" \
+  "${branch}" \
+  > "${PROJECT}.version"
-- 
GitLab