Skip to content

Commit

Permalink
Merge pull request #4964 from inverse-inc/fix/git_commit_id
Browse files Browse the repository at this point in the history
[pkg] generate git_commit_id for maintenance
  • Loading branch information
julsemaan committed Nov 26, 2019
2 parents cf8d92a + d97d154 commit e4a58a3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -193,13 +193,17 @@ variables:

.rpm_script:
script:
# temp
- echo "%git_commit $CI_COMMIT_SHA" >> ${RPM_DIR}/.rpmmacros
- cp ${RPM_DIR}/.rpmmacros ${HOME}
- ci-build-pkg ${RPM_DIR}

.deb_script:
script:
- ./${CIDIR}/debian/convert-to-native-package.sh
- cp ${CIDIR}/debian/.devscripts ${HOME}
# temp
- make conf/git_commit_id
- quilt push
- ci-build-pkg ${DEB_DIR}
variables:
Expand Down
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -260,3 +260,7 @@ html_install:
cp -v --no-dereference $(SRC_HTML_PFAPPDIR_STATIC)/alt \
$(DESTDIR)$(HTML_PFAPPDIR_STATIC)

.PHONY: conf/git_commit_id
conf/git_commit_id:
echo $$CI_COMMIT_SHA > $@

1 change: 0 additions & 1 deletion debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,6 @@ install: build
install -d -m2770 $(CURDIR)/debian/packetfence-redis-cache$(PREFIX)/$(NAME)/logs
install -d -m2770 $(CURDIR)/debian/packetfence-redis-cache$(PREFIX)/$(NAME)/var/redis_cache
install -m0600 conf/redis_cache.conf.example $(CURDIR)/debian/packetfence-redis-cache$(PREFIX)/$(NAME)/conf/redis_cache.conf
echo $(C_ID) > $(CURDIR)/debian/packetfence$(PREFIX)/$(NAME)/conf/git_commit_id

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

0 comments on commit e4a58a3

Please sign in to comment.