From 5ab2c6bb39a9e3795b669cc1b673b2e5048319b2 Mon Sep 17 00:00:00 2001 From: Jens Steidl <Jens.Steidl@slub-dresden.de> Date: Thu, 5 Oct 2023 17:24:43 +0200 Subject: [PATCH] - use architecture placerholder --- .gitlab-ci.yml | 3 ++- gitlab-ci/validate_workflows.control | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2068672..0b7ec6a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -76,7 +76,8 @@ package-debian-job: # copy & rename deb control file template - cp gitlab-ci/validate_workflows.control ${DEB_BUILD_DIR}/DEBIAN/control # set package version - - sed -i "s#VERSION_PLACEHOLDER#$VERSION-$REVISION#g" ${DEB_BUILD_DIR}/DEBIAN/control + - sed -i "s#VERSION_PLACEHOLDER#${VERSION}-${REVISION}#g" ${DEB_BUILD_DIR}/DEBIAN/control + - sed -i "s#ARCHITECTURE_PLACEHOLDER#${ARCHITECTURE}#g" "${DEB_BUILD_DIR}/DEBIAN/control" # add checksums - pushd ${DEB_BUILD_DIR} - md5sum $(find * -type f -not -path 'DEBIAN/*') > DEBIAN/md5sums diff --git a/gitlab-ci/validate_workflows.control b/gitlab-ci/validate_workflows.control index 4744914..5c637b4 100644 --- a/gitlab-ci/validate_workflows.control +++ b/gitlab-ci/validate_workflows.control @@ -1,6 +1,6 @@ Package: validate-workflows Version: VERSION_PLACEHOLDER -Architecture: all +Architecture: ARCHITECTURE_PLACEHOLDER Maintainer: SLUBArchiv.digital <langzeitarchiv@slub-dresden.de> Description: This is a meta tool to validate files based on specified SLUBArchiv.digital recommendations. Homepage: https://git.slub-dresden.de/digital-preservation/validate_workflows -- GitLab