Skip to content

Commit

Permalink
ci/cd - fix missing version in linux package name
Browse files Browse the repository at this point in the history
  • Loading branch information
fl0ppy-d1sk committed May 8, 2023
1 parent 136f68c commit e14475d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/linux-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ jobs:
docker save local/bunkerweb-${{ inputs.LINUX }}:latest | ssh -C root@arm docker load
scp ./src/linux/package.sh root@arm:/opt
ssh root@arm chmod +x /opt/package.sh
ssh root@arm /opt/package.sh ${{ inputs.LINUX }} ${{ env.LARCH }}
ssh root@arm /opt/package.sh ${{ inputs.LINUX }} ${{ env.LARCH }} "$(cat src/VERSION | tr -d '\n')"
scp -r root@arm:/root/package-${{ inputs.LINUX }} ./package-${{ inputs.LINUX }}
env:
LARCH: ${{ env.LARCH }}
Expand Down
5 changes: 4 additions & 1 deletion src/linux/package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@ fi
do_and_check_cmd mkdir "$package_dir"

# Generate package
version="$(cat src/VERSION | tr -d '\n')"
version="$3"
if [ -f "src/VERSION" ] ; then
version="$(cat src/VERSION | tr -d '\n')"
fi
type="deb"
if [ "$linux" = "fedora" ] || [ "$linux" = "centos" ] || [ "$linux" = "rhel" ] ; then
type="rpm"
Expand Down

0 comments on commit e14475d

Please sign in to comment.