mirror of
https://github.com/mailscope/kumomta.git
synced 2026-10-26 16:26:14 +00:00
ci: add arch to deb filename, fixup gh release upload for arm
This commit is contained in:
@@ -94,7 +94,7 @@ steps:
|
||||
|
||||
publish_gh_dev:
|
||||
depends_on: [verify-installable]
|
||||
image: ghcr.io/kumocorp/builder-for-ubuntu:22.04
|
||||
image: ${BUILDER_IMAGE}
|
||||
when:
|
||||
- evaluate: '(CI_PIPELINE_EVENT == "push" && CI_COMMIT_BRANCH == "main")'
|
||||
environment:
|
||||
|
||||
+3
-1
@@ -12,6 +12,8 @@ DEB_NAME=${DEB_NAME:-kumomta-dev}
|
||||
CONFLICTS=kumomta
|
||||
[[ ${DEB_NAME} == "kumomta" ]] && CONFLICTS=kumomta-dev
|
||||
|
||||
DEB_ARCH=$(dpkg-architecture -q DEB_BUILD_ARCH_CPU)
|
||||
|
||||
KUMO_DEB_VERSION=$(git -c "core.abbrev=8" show -s "--format=%cd.%h" "--date=format:%Y.%m.%d.%H%M%S")
|
||||
distro=$(lsb_release -is 2>/dev/null || sh -c "source /etc/os-release && echo \$NAME")
|
||||
distver=$(lsb_release -rs 2>/dev/null || sh -c "source /etc/os-release && echo \$VERSION_ID")
|
||||
@@ -125,7 +127,7 @@ sed -i '/^Source:/d' pkg/debian/DEBIAN/control # The `Source:` field needs to b
|
||||
echo $deps | sed -e 's/shlibs:Depends=/Depends: /' >> pkg/debian/DEBIAN/control
|
||||
cat pkg/debian/DEBIAN/control
|
||||
|
||||
debname=${DEB_NAME}.${KUMO_DEB_VERSION}.$distro$distver
|
||||
debname=${DEB_NAME}.${KUMO_DEB_VERSION}.${distro}${distver}_${DEB_ARCH}
|
||||
find pkg -ls
|
||||
FAKEROOT=fakeroot
|
||||
if test "$EUID" -eq 0 ; then
|
||||
|
||||
Reference in New Issue
Block a user