.gitlab-ci.yml - fixed artifact upload

This commit is contained in:
Oscar Krause 2022-12-27 12:56:46 +01:00
parent 4c643b18dd
commit 751546995d

View File

@ -125,9 +125,9 @@ deploy:debian:
# The release number might increment if the package maintainer # The release number might increment if the package maintainer
# updated the packaging, while the version number of the application # updated the packaging, while the version number of the application
# being packaged did not change. # being packaged did not change.
- BUILD_NAME=build.deb # inherited by build-stage - BUILD_NAME=build/build.deb # inherited by build-stage
- PACKAGE_NAME=`dpkg -I build/build.deb | grep "Package:" | awk '{ print $2 }'` - PACKAGE_NAME=`dpkg -I ${BUILD_NAME} | grep "Package:" | awk '{ print $2 }'`
- PACKAGE_VERSION=`dpkg -I build/build.deb | grep "Version:" | awk '{ print $2 }'` - PACKAGE_VERSION=`dpkg -I ${BUILD_NAME} | grep "Version:" | awk '{ print $2 }'`
- PACKAGE_ARCH=amd64 - PACKAGE_ARCH=amd64
- EXPORT_NAME="${PACKAGE_NAME}_${PACKAGE_VERSION}-0_${PACKAGE_ARCH}.deb" - EXPORT_NAME="${PACKAGE_NAME}_${PACKAGE_VERSION}-0_${PACKAGE_ARCH}.deb"
- mv ${BUILD_NAME} ${EXPORT_NAME} - mv ${BUILD_NAME} ${EXPORT_NAME}