4747 aarch64)
4848 echo "deb_arch=arm64" >> $GITHUB_OUTPUT
4949 ;;
50+ *)
51+ echo "Unsupported arch: ${{ inputs.arch }}"
52+ exit 1
53+ ;;
5054 esac
5155 deb_version=${version/-/.}
5256 echo "deb_version=${deb_version/v/}" >> $GITHUB_OUTPUT
@@ -59,32 +63,26 @@ runs:
5963 - name : Build Databend Query Package
6064 shell : bash
6165 run : |
62- export path="distro"
63- export version="${{ inputs.version }}"
64- export deb_version="${{ steps.info.outputs.deb_version }}"
65- export deb_arch="${{ steps.info.outputs.deb_arch }}"
66- pkg_name="databend-query_${deb_version}_${deb_arch}.deb"
67- nfpm pkg --packager deb -t "${path}/${pkg_name}" -f <(envsubst '${deb_arch} ${deb_version} ${path}' < scripts/distribution/nfpm-query.yaml)
66+ yq -i '.arch = "${{ steps.info.outputs.deb_arch }}"' scripts/distribution/nfpm-query.yaml
67+ yq -i '.version = "${{ steps.info.outputs.deb_version }}"' scripts/distribution/nfpm-query.yaml
68+ pkg_name="databend-query_${{ steps.info.outputs.deb_version }}_${{ steps.info.outputs.deb_arch }}.deb"
69+ nfpm pkg --packager deb -t "distro/${pkg_name}" -f scripts/distribution/nfpm-query.yaml
6870
6971 - name : Build Databend Meta Package
7072 shell : bash
7173 run : |
72- export path="distro"
73- export version="${{ inputs.version }}"
74- export deb_version="${{ steps.info.outputs.deb_version }}"
75- export deb_arch="${{ steps.info.outputs.deb_arch }}"
76- pkg_name="databend-meta_${deb_version}_${deb_arch}.deb"
77- nfpm pkg --packager deb -t "${path}/${pkg_name}" -f <(envsubst '${deb_arch} ${deb_version} ${path}' < scripts/distribution/nfpm-meta.yaml)
74+ yq -i '.arch = "${{ steps.info.outputs.deb_arch }}"' scripts/distribution/nfpm-meta.yaml
75+ yq -i '.version = "${{ steps.info.outputs.deb_version }}"' scripts/distribution/nfpm-meta.yaml
76+ pkg_name="databend-meta_${{ steps.info.outputs.deb_version }}_${{ steps.info.outputs.deb_arch }}.deb"
77+ nfpm pkg --packager deb -t "distro/${pkg_name}" -f scripts/distribution/nfpm-meta.yaml
7878
7979 - name : Build Databend Debug Package
8080 shell : bash
8181 run : |
82- export path="distro"
83- export version="${{ inputs.version }}"
84- export deb_version="${{ steps.info.outputs.deb_version }}"
85- export deb_arch="${{ steps.info.outputs.deb_arch }}"
86- pkg_name="databend-query-dbg_${deb_version}_${deb_arch}.deb"
87- nfpm pkg --packager deb -t "${path}/${pkg_name}" -f <(envsubst '${deb_arch} ${deb_version} ${path}' < scripts/distribution/nfpm-query-dbg.yaml)
82+ yq -i '.arch = "${{ steps.info.outputs.deb_arch }}"' scripts/distribution/nfpm-query-dbg.yaml
83+ yq -i '.version = "${{ steps.info.outputs.deb_version }}"' scripts/distribution/nfpm-query-dbg.yaml
84+ pkg_name="databend-query-dbg_${{ steps.info.outputs.deb_version }}_${{ steps.info.outputs.deb_arch }}.deb"
85+ nfpm pkg --packager deb -t "distro/${pkg_name}" -f scripts/distribution/nfpm-query-dbg.yaml
8886
8987 - name : Update release to github
9088 shell : bash
0 commit comments