Skip to content

Commit 31b3460

Browse files
authored
Test (#4187)
* Print nfpm config head For debugging. * Export NFPM_CONFIG Otherwise envsubst does not have access to it.
1 parent 798dc0b commit 31b3460

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

ci/build/build-packages.sh

+6
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,20 @@ get_nfpm_arch() {
5959
release_nfpm() {
6060
local nfpm_config
6161

62+
export NFPM_ARCH
63+
6264
PKG_FORMAT="deb"
6365
NFPM_ARCH="$(get_nfpm_arch)"
6466
nfpm_config="$(envsubst < ./ci/build/nfpm.yaml)"
67+
echo "Building deb"
68+
echo "$nfpm_config" | head --lines=4
6569
nfpm pkg -f <(echo "$nfpm_config") --target "release-packages/code-server_${VERSION}_${NFPM_ARCH}.deb"
6670

6771
PKG_FORMAT="rpm"
6872
NFPM_ARCH="$(get_nfpm_arch)"
6973
nfpm_config="$(envsubst < ./ci/build/nfpm.yaml)"
74+
echo "Building rpm"
75+
echo "$nfpm_config" | head --lines=4
7076
nfpm pkg -f <(echo "$nfpm_config") --target "release-packages/code-server-$VERSION-$NFPM_ARCH.rpm"
7177
}
7278

0 commit comments

Comments
 (0)