Commit e405fa4a authored by PD0ZRY Rudy's avatar PD0ZRY Rudy
Browse files

Initial try of building debian package

parent 846802e3
debian_amd64:
stage: build
script:
- git submodule update --init --recursive
- cmake .
- make
- ./make_debian_changelog.sh
- dpkg-buildpackage
- mkdir build
- cp ../*.deb build
only:
- master
artifacts:
paths:
- build/*
tags:
- debian
- amd64
tarantool-mysql-replicator (VERSION) RELEASE; urgency=medium
LASTCOMMIT
-- Rudy Hardeman <zarya@gigafreak.net> DATE
Source: tarantool-mysql-replicator
Section: unknown
Priority: extra
Maintainer: Rudy Hardeman <zarya@gigafreak.net>
Build-Depends:
debhelper (>= 5)
Standards-Version: 3.8.4
Package: tarantool-mysql-replicator
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: tarantool-mysql-replicator
#!/usr/bin/make -f
#export DH_VERBOSE=1
export DH_OPTIONS
%:
dh $@
override_dh_install:
dh_install replicatord /opt/Replicator
#!/bin/bash
VERSION=$(date +%Y%m%d-%H%M%S)
DATE=$(date -R)
LASTCOMMIT=$(git log -1 --oneline)
cat debian/changelog.template | sed "s/VERSION/${VERSION}/g" | sed "s/DATE/${DATE}/g" | sed "s/LASTCOMMIT/Last commit/g" > debian/changelog
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment