File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed
Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -65,18 +65,28 @@ jobs:
6565 echo "${{secrets.PUBTEST_KEY}}" > pubtest.key
6666 PKG_REPO=${{inputs.pkgRepo}} CERT=pubtest.crt KEY=pubtest.key DL=1 scripts/packages/package-check.sh ${{inputs.pkgVersion}}
6767 for i in $(find ${{inputs.pkgRepo}}/nginx-agent | grep -e "nginx-agent[_-]${{inputs.pkgVersion}}"); do
68+ echo "Processing deb packages..."
6869 if [[ "$i" == *.deb ]]; then
6970 echo "Renaming ${i} to ${i/_/-}"
7071 mv "${i}" "${i/_/-}"
71- fi
72+ fi
73+ echo "Processing apk packages..."
7274 if [[ "$i" == *.apk ]]; then
7375 ver=$(echo "$i" | grep -o -e "v[0-9]*\.[0-9]*")
7476 arch=$(echo "$i" | grep -o -F -e "x86_64" -e "aarch64")
7577 dest="$(dirname "$i")/nginx-agent-${{inputs.pkgVersion}}-$ver-$arch.apk"
7678 echo "Renaming ${i} to ${dest}"
7779 mv "${i}" "${dest}"
7880 fi
79- done
81+ if [[ "$i" == *.pkg ]]; then
82+ bsd=$(echo "$i" | "FreeBSD:[0-9]*:[A-z][0-9]*")
83+ ver=$(echo "$bsd" | cut -d':' -f2)
84+ arch=$(echo "$i" | grep -o -F -e "amd64" -e "arm64")
85+ dest="$(dirname "$i")/nginx-agent-${{inputs.pkgVersion}}-FreeBSD.$ver.$arch.pkg"
86+ echo "Renaming ${i} to ${dest}"
87+ mv "${i}" "${dest}"
88+ fi
89+ done
8090 find ${{inputs.pkgRepo}}/nginx-agent | grep -e "nginx-agent[_-]${{inputs.pkgVersion}}"
8191
8292 - name : GitHub Upload
You can’t perform that action at this time.
0 commit comments