Skip to content

Commit e4a58a3

Browse files
authored
Merge pull request #4964 from inverse-inc/fix/git_commit_id
[pkg] generate git_commit_id for maintenance
2 parents cf8d92a + d97d154 commit e4a58a3

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

.gitlab-ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,13 +193,17 @@ variables:
193193

194194
.rpm_script:
195195
script:
196+
# temp
197+
- echo "%git_commit $CI_COMMIT_SHA" >> ${RPM_DIR}/.rpmmacros
196198
- cp ${RPM_DIR}/.rpmmacros ${HOME}
197199
- ci-build-pkg ${RPM_DIR}
198200

199201
.deb_script:
200202
script:
201203
- ./${CIDIR}/debian/convert-to-native-package.sh
202204
- cp ${CIDIR}/debian/.devscripts ${HOME}
205+
# temp
206+
- make conf/git_commit_id
203207
- quilt push
204208
- ci-build-pkg ${DEB_DIR}
205209
variables:

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,3 +260,7 @@ html_install:
260260
cp -v --no-dereference $(SRC_HTML_PFAPPDIR_STATIC)/alt \
261261
$(DESTDIR)$(HTML_PFAPPDIR_STATIC)
262262

263+
.PHONY: conf/git_commit_id
264+
conf/git_commit_id:
265+
echo $$CI_COMMIT_SHA > $@
266+

debian/rules

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,6 @@ install: build
143143
install -d -m2770 $(CURDIR)/debian/packetfence-redis-cache$(PREFIX)/$(NAME)/logs
144144
install -d -m2770 $(CURDIR)/debian/packetfence-redis-cache$(PREFIX)/$(NAME)/var/redis_cache
145145
install -m0600 conf/redis_cache.conf.example $(CURDIR)/debian/packetfence-redis-cache$(PREFIX)/$(NAME)/conf/redis_cache.conf
146-
echo $(C_ID) > $(CURDIR)/debian/packetfence$(PREFIX)/$(NAME)/conf/git_commit_id
147146

148147
#Portal javascript/css
149148
rm -f $(CURDIR)/debian/packetfence$(PREFIX)/$(NAME)/html/common/styles.css

0 commit comments

Comments
 (0)