diff --git a/.drone.yml b/.drone.yml index b4656b91403..90b766e5823 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1206,20 +1206,23 @@ steps: - which curl || apk add --no-cache curl - |- cd "$WORKSPACE_DIR/go/artifacts" - for file in $(find . -type f ! -iname '*.sha256' ! -iname '*-unsigned.zip*'); do + find . -type f ! -iname '*.sha256' ! -iname '*-unsigned.zip*' | while read -r file; do # Skip files that are not results of this build # (e.g. tarballs from which OS packages are made) [ -f "$file.sha256" ] || continue name="$(basename "$file" | sed -E 's/(-|_)v?[0-9].*$//')" # extract part before -vX.Y.Z + description="Linux 64-bit (RHEL/CentOS 7.x compatible)" + products="$name" if [ "$name" = "tsh" ]; then - products="teleport teleport-ent"; - else - products="$name" + products="teleport teleport-ent" + elif [ "$name" = "Teleport Connect" ]; then + description="Teleport Connect" + products="teleport teleport-ent" fi shasum="$(cat "$file.sha256" | cut -d ' ' -f 1)" - curl $CREDENTIALS --fail -o /dev/null -F description="Linux 64-bit (RHEL/CentOS 7.x compatible)" -F os="linux" -F arch="amd64" -F "file=@$file" -F "sha256=$shasum" "$RELEASES_HOST/assets"; + curl $CREDENTIALS --fail -o /dev/null -F description="$description" -F os="linux" -F arch="amd64" -F "file=@$file" -F "sha256=$shasum" "$RELEASES_HOST/assets"; for product in $products; do status_code=$(curl $CREDENTIALS -o "$WORKSPACE_DIR/curl_out.txt" -w "%{http_code}" -F "product=$product" -F "version=$VERSION" -F notesMd="# Teleport $VERSION" -F status=draft "$RELEASES_HOST/releases") @@ -1228,7 +1231,7 @@ steps: cat $WORKSPACE_DIR/curl_out.txt exit 1 fi - curl $CREDENTIALS --fail -o /dev/null -X PUT "$RELEASES_HOST/releases/$product@$VERSION/assets/$(basename $file)" + curl $CREDENTIALS --fail -o /dev/null -X PUT "$RELEASES_HOST/releases/$product@$VERSION/assets/$(basename "$file" | sed 's/ /%20/g')" done done environment: @@ -1362,20 +1365,23 @@ steps: - which curl || apk add --no-cache curl - |- cd "$WORKSPACE_DIR/go/artifacts" - for file in $(find . -type f ! -iname '*.sha256' ! -iname '*-unsigned.zip*'); do + find . -type f ! -iname '*.sha256' ! -iname '*-unsigned.zip*' | while read -r file; do # Skip files that are not results of this build # (e.g. tarballs from which OS packages are made) [ -f "$file.sha256" ] || continue name="$(basename "$file" | sed -E 's/(-|_)v?[0-9].*$//')" # extract part before -vX.Y.Z + description="Linux 64-bit (RHEL/CentOS 7.x compatible, FedRAMP/FIPS)" + products="$name" if [ "$name" = "tsh" ]; then - products="teleport teleport-ent"; - else - products="$name" + products="teleport teleport-ent" + elif [ "$name" = "Teleport Connect" ]; then + description="Teleport Connect" + products="teleport teleport-ent" fi shasum="$(cat "$file.sha256" | cut -d ' ' -f 1)" - curl $CREDENTIALS --fail -o /dev/null -F description="Linux 64-bit (RHEL/CentOS 7.x compatible, FedRAMP/FIPS)" -F os="linux" -F arch="amd64" -F "file=@$file" -F "sha256=$shasum" "$RELEASES_HOST/assets"; + curl $CREDENTIALS --fail -o /dev/null -F description="$description" -F os="linux" -F arch="amd64" -F "file=@$file" -F "sha256=$shasum" "$RELEASES_HOST/assets"; for product in $products; do status_code=$(curl $CREDENTIALS -o "$WORKSPACE_DIR/curl_out.txt" -w "%{http_code}" -F "product=$product" -F "version=$VERSION" -F notesMd="# Teleport $VERSION" -F status=draft "$RELEASES_HOST/releases") @@ -1384,7 +1390,7 @@ steps: cat $WORKSPACE_DIR/curl_out.txt exit 1 fi - curl $CREDENTIALS --fail -o /dev/null -X PUT "$RELEASES_HOST/releases/$product@$VERSION/assets/$(basename $file)" + curl $CREDENTIALS --fail -o /dev/null -X PUT "$RELEASES_HOST/releases/$product@$VERSION/assets/$(basename "$file" | sed 's/ /%20/g')" done done environment: @@ -1516,20 +1522,23 @@ steps: - which curl || apk add --no-cache curl - |- cd "$WORKSPACE_DIR/go/artifacts" - for file in $(find . -type f ! -iname '*.sha256' ! -iname '*-unsigned.zip*'); do + find . -type f ! -iname '*.sha256' ! -iname '*-unsigned.zip*' | while read -r file; do # Skip files that are not results of this build # (e.g. tarballs from which OS packages are made) [ -f "$file.sha256" ] || continue name="$(basename "$file" | sed -E 's/(-|_)v?[0-9].*$//')" # extract part before -vX.Y.Z + description="Linux 64-bit" + products="$name" if [ "$name" = "tsh" ]; then - products="teleport teleport-ent"; - else - products="$name" + products="teleport teleport-ent" + elif [ "$name" = "Teleport Connect" ]; then + description="Teleport Connect" + products="teleport teleport-ent" fi shasum="$(cat "$file.sha256" | cut -d ' ' -f 1)" - curl $CREDENTIALS --fail -o /dev/null -F description="Linux 64-bit" -F os="linux" -F arch="amd64" -F "file=@$file" -F "sha256=$shasum" "$RELEASES_HOST/assets"; + curl $CREDENTIALS --fail -o /dev/null -F description="$description" -F os="linux" -F arch="amd64" -F "file=@$file" -F "sha256=$shasum" "$RELEASES_HOST/assets"; for product in $products; do status_code=$(curl $CREDENTIALS -o "$WORKSPACE_DIR/curl_out.txt" -w "%{http_code}" -F "product=$product" -F "version=$VERSION" -F notesMd="# Teleport $VERSION" -F status=draft "$RELEASES_HOST/releases") @@ -1538,7 +1547,7 @@ steps: cat $WORKSPACE_DIR/curl_out.txt exit 1 fi - curl $CREDENTIALS --fail -o /dev/null -X PUT "$RELEASES_HOST/releases/$product@$VERSION/assets/$(basename $file)" + curl $CREDENTIALS --fail -o /dev/null -X PUT "$RELEASES_HOST/releases/$product@$VERSION/assets/$(basename "$file" | sed 's/ /%20/g')" done done environment: @@ -1670,20 +1679,23 @@ steps: - which curl || apk add --no-cache curl - |- cd "$WORKSPACE_DIR/go/artifacts" - for file in $(find . -type f ! -iname '*.sha256' ! -iname '*-unsigned.zip*'); do + find . -type f ! -iname '*.sha256' ! -iname '*-unsigned.zip*' | while read -r file; do # Skip files that are not results of this build # (e.g. tarballs from which OS packages are made) [ -f "$file.sha256" ] || continue name="$(basename "$file" | sed -E 's/(-|_)v?[0-9].*$//')" # extract part before -vX.Y.Z + description="Linux 64-bit (FedRAMP/FIPS)" + products="$name" if [ "$name" = "tsh" ]; then - products="teleport teleport-ent"; - else - products="$name" + products="teleport teleport-ent" + elif [ "$name" = "Teleport Connect" ]; then + description="Teleport Connect" + products="teleport teleport-ent" fi shasum="$(cat "$file.sha256" | cut -d ' ' -f 1)" - curl $CREDENTIALS --fail -o /dev/null -F description="Linux 64-bit (FedRAMP/FIPS)" -F os="linux" -F arch="amd64" -F "file=@$file" -F "sha256=$shasum" "$RELEASES_HOST/assets"; + curl $CREDENTIALS --fail -o /dev/null -F description="$description" -F os="linux" -F arch="amd64" -F "file=@$file" -F "sha256=$shasum" "$RELEASES_HOST/assets"; for product in $products; do status_code=$(curl $CREDENTIALS -o "$WORKSPACE_DIR/curl_out.txt" -w "%{http_code}" -F "product=$product" -F "version=$VERSION" -F notesMd="# Teleport $VERSION" -F status=draft "$RELEASES_HOST/releases") @@ -1692,7 +1704,7 @@ steps: cat $WORKSPACE_DIR/curl_out.txt exit 1 fi - curl $CREDENTIALS --fail -o /dev/null -X PUT "$RELEASES_HOST/releases/$product@$VERSION/assets/$(basename $file)" + curl $CREDENTIALS --fail -o /dev/null -X PUT "$RELEASES_HOST/releases/$product@$VERSION/assets/$(basename "$file" | sed 's/ /%20/g')" done done environment: @@ -1716,7 +1728,7 @@ volumes: ################################################ # Generated using dronegen, do not edit by hand! # Use 'make dronegen' to update. -# Generated at dronegen/tag.go:461 +# Generated at dronegen/tag.go:464 ################################################ kind: pipeline @@ -1846,20 +1858,23 @@ steps: - which curl || apk add --no-cache curl - |- cd "$WORKSPACE_DIR/go/artifacts" - for file in $(find . -type f ! -iname '*.sha256' ! -iname '*-unsigned.zip*'); do + find . -type f ! -iname '*.sha256' ! -iname '*-unsigned.zip*' | while read -r file; do # Skip files that are not results of this build # (e.g. tarballs from which OS packages are made) [ -f "$file.sha256" ] || continue name="$(basename "$file" | sed -E 's/(-|_)v?[0-9].*$//')" # extract part before -vX.Y.Z + description="Linux 64-bit RPM (RHEL/CentOS 7.x compatible)" + products="$name" if [ "$name" = "tsh" ]; then - products="teleport teleport-ent"; - else - products="$name" + products="teleport teleport-ent" + elif [ "$name" = "Teleport Connect" ]; then + description="Teleport Connect" + products="teleport teleport-ent" fi shasum="$(cat "$file.sha256" | cut -d ' ' -f 1)" - curl $CREDENTIALS --fail -o /dev/null -F description="Linux 64-bit RPM (RHEL/CentOS 7.x compatible)" -F os="linux" -F arch="amd64" -F "file=@$file" -F "sha256=$shasum" "$RELEASES_HOST/assets"; + curl $CREDENTIALS --fail -o /dev/null -F description="$description" -F os="linux" -F arch="amd64" -F "file=@$file" -F "sha256=$shasum" "$RELEASES_HOST/assets"; for product in $products; do status_code=$(curl $CREDENTIALS -o "$WORKSPACE_DIR/curl_out.txt" -w "%{http_code}" -F "product=$product" -F "version=$VERSION" -F notesMd="# Teleport $VERSION" -F status=draft "$RELEASES_HOST/releases") @@ -1868,7 +1883,7 @@ steps: cat $WORKSPACE_DIR/curl_out.txt exit 1 fi - curl $CREDENTIALS --fail -o /dev/null -X PUT "$RELEASES_HOST/releases/$product@$VERSION/assets/$(basename $file)" + curl $CREDENTIALS --fail -o /dev/null -X PUT "$RELEASES_HOST/releases/$product@$VERSION/assets/$(basename "$file" | sed 's/ /%20/g')" done done environment: @@ -1897,7 +1912,7 @@ volumes: ################################################ # Generated using dronegen, do not edit by hand! # Use 'make dronegen' to update. -# Generated at dronegen/tag.go:461 +# Generated at dronegen/tag.go:464 ################################################ kind: pipeline @@ -2024,20 +2039,23 @@ steps: - which curl || apk add --no-cache curl - |- cd "$WORKSPACE_DIR/go/artifacts" - for file in $(find . -type f ! -iname '*.sha256' ! -iname '*-unsigned.zip*'); do + find . -type f ! -iname '*.sha256' ! -iname '*-unsigned.zip*' | while read -r file; do # Skip files that are not results of this build # (e.g. tarballs from which OS packages are made) [ -f "$file.sha256" ] || continue name="$(basename "$file" | sed -E 's/(-|_)v?[0-9].*$//')" # extract part before -vX.Y.Z + description="Linux 64-bit RPM (RHEL/CentOS 7.x compatible, FedRAMP/FIPS)" + products="$name" if [ "$name" = "tsh" ]; then - products="teleport teleport-ent"; - else - products="$name" + products="teleport teleport-ent" + elif [ "$name" = "Teleport Connect" ]; then + description="Teleport Connect" + products="teleport teleport-ent" fi shasum="$(cat "$file.sha256" | cut -d ' ' -f 1)" - curl $CREDENTIALS --fail -o /dev/null -F description="Linux 64-bit RPM (RHEL/CentOS 7.x compatible, FedRAMP/FIPS)" -F os="linux" -F arch="amd64" -F "file=@$file" -F "sha256=$shasum" "$RELEASES_HOST/assets"; + curl $CREDENTIALS --fail -o /dev/null -F description="$description" -F os="linux" -F arch="amd64" -F "file=@$file" -F "sha256=$shasum" "$RELEASES_HOST/assets"; for product in $products; do status_code=$(curl $CREDENTIALS -o "$WORKSPACE_DIR/curl_out.txt" -w "%{http_code}" -F "product=$product" -F "version=$VERSION" -F notesMd="# Teleport $VERSION" -F status=draft "$RELEASES_HOST/releases") @@ -2046,7 +2064,7 @@ steps: cat $WORKSPACE_DIR/curl_out.txt exit 1 fi - curl $CREDENTIALS --fail -o /dev/null -X PUT "$RELEASES_HOST/releases/$product@$VERSION/assets/$(basename $file)" + curl $CREDENTIALS --fail -o /dev/null -X PUT "$RELEASES_HOST/releases/$product@$VERSION/assets/$(basename "$file" | sed 's/ /%20/g')" done done environment: @@ -2075,7 +2093,7 @@ volumes: ################################################ # Generated using dronegen, do not edit by hand! # Use 'make dronegen' to update. -# Generated at dronegen/tag.go:461 +# Generated at dronegen/tag.go:464 ################################################ kind: pipeline @@ -2196,20 +2214,23 @@ steps: - which curl || apk add --no-cache curl - |- cd "$WORKSPACE_DIR/go/artifacts" - for file in $(find . -type f ! -iname '*.sha256' ! -iname '*-unsigned.zip*'); do + find . -type f ! -iname '*.sha256' ! -iname '*-unsigned.zip*' | while read -r file; do # Skip files that are not results of this build # (e.g. tarballs from which OS packages are made) [ -f "$file.sha256" ] || continue name="$(basename "$file" | sed -E 's/(-|_)v?[0-9].*$//')" # extract part before -vX.Y.Z + description="Linux 64-bit DEB" + products="$name" if [ "$name" = "tsh" ]; then - products="teleport teleport-ent"; - else - products="$name" + products="teleport teleport-ent" + elif [ "$name" = "Teleport Connect" ]; then + description="Teleport Connect" + products="teleport teleport-ent" fi shasum="$(cat "$file.sha256" | cut -d ' ' -f 1)" - curl $CREDENTIALS --fail -o /dev/null -F description="Linux 64-bit DEB" -F os="linux" -F arch="amd64" -F "file=@$file" -F "sha256=$shasum" "$RELEASES_HOST/assets"; + curl $CREDENTIALS --fail -o /dev/null -F description="$description" -F os="linux" -F arch="amd64" -F "file=@$file" -F "sha256=$shasum" "$RELEASES_HOST/assets"; for product in $products; do status_code=$(curl $CREDENTIALS -o "$WORKSPACE_DIR/curl_out.txt" -w "%{http_code}" -F "product=$product" -F "version=$VERSION" -F notesMd="# Teleport $VERSION" -F status=draft "$RELEASES_HOST/releases") @@ -2218,7 +2239,7 @@ steps: cat $WORKSPACE_DIR/curl_out.txt exit 1 fi - curl $CREDENTIALS --fail -o /dev/null -X PUT "$RELEASES_HOST/releases/$product@$VERSION/assets/$(basename $file)" + curl $CREDENTIALS --fail -o /dev/null -X PUT "$RELEASES_HOST/releases/$product@$VERSION/assets/$(basename "$file" | sed 's/ /%20/g')" done done environment: @@ -2242,7 +2263,7 @@ volumes: ################################################ # Generated using dronegen, do not edit by hand! # Use 'make dronegen' to update. -# Generated at dronegen/tag.go:461 +# Generated at dronegen/tag.go:464 ################################################ kind: pipeline @@ -2360,20 +2381,23 @@ steps: - which curl || apk add --no-cache curl - |- cd "$WORKSPACE_DIR/go/artifacts" - for file in $(find . -type f ! -iname '*.sha256' ! -iname '*-unsigned.zip*'); do + find . -type f ! -iname '*.sha256' ! -iname '*-unsigned.zip*' | while read -r file; do # Skip files that are not results of this build # (e.g. tarballs from which OS packages are made) [ -f "$file.sha256" ] || continue name="$(basename "$file" | sed -E 's/(-|_)v?[0-9].*$//')" # extract part before -vX.Y.Z + description="Linux 64-bit DEB (FedRAMP/FIPS)" + products="$name" if [ "$name" = "tsh" ]; then - products="teleport teleport-ent"; - else - products="$name" + products="teleport teleport-ent" + elif [ "$name" = "Teleport Connect" ]; then + description="Teleport Connect" + products="teleport teleport-ent" fi shasum="$(cat "$file.sha256" | cut -d ' ' -f 1)" - curl $CREDENTIALS --fail -o /dev/null -F description="Linux 64-bit DEB (FedRAMP/FIPS)" -F os="linux" -F arch="amd64" -F "file=@$file" -F "sha256=$shasum" "$RELEASES_HOST/assets"; + curl $CREDENTIALS --fail -o /dev/null -F description="$description" -F os="linux" -F arch="amd64" -F "file=@$file" -F "sha256=$shasum" "$RELEASES_HOST/assets"; for product in $products; do status_code=$(curl $CREDENTIALS -o "$WORKSPACE_DIR/curl_out.txt" -w "%{http_code}" -F "product=$product" -F "version=$VERSION" -F notesMd="# Teleport $VERSION" -F status=draft "$RELEASES_HOST/releases") @@ -2382,7 +2406,7 @@ steps: cat $WORKSPACE_DIR/curl_out.txt exit 1 fi - curl $CREDENTIALS --fail -o /dev/null -X PUT "$RELEASES_HOST/releases/$product@$VERSION/assets/$(basename $file)" + curl $CREDENTIALS --fail -o /dev/null -X PUT "$RELEASES_HOST/releases/$product@$VERSION/assets/$(basename "$file" | sed 's/ /%20/g')" done done environment: @@ -2514,20 +2538,23 @@ steps: - which curl || apk add --no-cache curl - |- cd "$WORKSPACE_DIR/go/artifacts" - for file in $(find . -type f ! -iname '*.sha256' ! -iname '*-unsigned.zip*'); do + find . -type f ! -iname '*.sha256' ! -iname '*-unsigned.zip*' | while read -r file; do # Skip files that are not results of this build # (e.g. tarballs from which OS packages are made) [ -f "$file.sha256" ] || continue name="$(basename "$file" | sed -E 's/(-|_)v?[0-9].*$//')" # extract part before -vX.Y.Z + description="Linux 32-bit" + products="$name" if [ "$name" = "tsh" ]; then - products="teleport teleport-ent"; - else - products="$name" + products="teleport teleport-ent" + elif [ "$name" = "Teleport Connect" ]; then + description="Teleport Connect" + products="teleport teleport-ent" fi shasum="$(cat "$file.sha256" | cut -d ' ' -f 1)" - curl $CREDENTIALS --fail -o /dev/null -F description="Linux 32-bit" -F os="linux" -F arch="386" -F "file=@$file" -F "sha256=$shasum" "$RELEASES_HOST/assets"; + curl $CREDENTIALS --fail -o /dev/null -F description="$description" -F os="linux" -F arch="386" -F "file=@$file" -F "sha256=$shasum" "$RELEASES_HOST/assets"; for product in $products; do status_code=$(curl $CREDENTIALS -o "$WORKSPACE_DIR/curl_out.txt" -w "%{http_code}" -F "product=$product" -F "version=$VERSION" -F notesMd="# Teleport $VERSION" -F status=draft "$RELEASES_HOST/releases") @@ -2536,7 +2563,7 @@ steps: cat $WORKSPACE_DIR/curl_out.txt exit 1 fi - curl $CREDENTIALS --fail -o /dev/null -X PUT "$RELEASES_HOST/releases/$product@$VERSION/assets/$(basename $file)" + curl $CREDENTIALS --fail -o /dev/null -X PUT "$RELEASES_HOST/releases/$product@$VERSION/assets/$(basename "$file" | sed 's/ /%20/g')" done done environment: @@ -2560,7 +2587,7 @@ volumes: ################################################ # Generated using dronegen, do not edit by hand! # Use 'make dronegen' to update. -# Generated at dronegen/tag.go:461 +# Generated at dronegen/tag.go:464 ################################################ kind: pipeline @@ -2690,20 +2717,23 @@ steps: - which curl || apk add --no-cache curl - |- cd "$WORKSPACE_DIR/go/artifacts" - for file in $(find . -type f ! -iname '*.sha256' ! -iname '*-unsigned.zip*'); do + find . -type f ! -iname '*.sha256' ! -iname '*-unsigned.zip*' | while read -r file; do # Skip files that are not results of this build # (e.g. tarballs from which OS packages are made) [ -f "$file.sha256" ] || continue name="$(basename "$file" | sed -E 's/(-|_)v?[0-9].*$//')" # extract part before -vX.Y.Z + description="Linux 32-bit RPM" + products="$name" if [ "$name" = "tsh" ]; then - products="teleport teleport-ent"; - else - products="$name" + products="teleport teleport-ent" + elif [ "$name" = "Teleport Connect" ]; then + description="Teleport Connect" + products="teleport teleport-ent" fi shasum="$(cat "$file.sha256" | cut -d ' ' -f 1)" - curl $CREDENTIALS --fail -o /dev/null -F description="Linux 32-bit RPM" -F os="linux" -F arch="386" -F "file=@$file" -F "sha256=$shasum" "$RELEASES_HOST/assets"; + curl $CREDENTIALS --fail -o /dev/null -F description="$description" -F os="linux" -F arch="386" -F "file=@$file" -F "sha256=$shasum" "$RELEASES_HOST/assets"; for product in $products; do status_code=$(curl $CREDENTIALS -o "$WORKSPACE_DIR/curl_out.txt" -w "%{http_code}" -F "product=$product" -F "version=$VERSION" -F notesMd="# Teleport $VERSION" -F status=draft "$RELEASES_HOST/releases") @@ -2712,7 +2742,7 @@ steps: cat $WORKSPACE_DIR/curl_out.txt exit 1 fi - curl $CREDENTIALS --fail -o /dev/null -X PUT "$RELEASES_HOST/releases/$product@$VERSION/assets/$(basename $file)" + curl $CREDENTIALS --fail -o /dev/null -X PUT "$RELEASES_HOST/releases/$product@$VERSION/assets/$(basename "$file" | sed 's/ /%20/g')" done done environment: @@ -2741,7 +2771,7 @@ volumes: ################################################ # Generated using dronegen, do not edit by hand! # Use 'make dronegen' to update. -# Generated at dronegen/tag.go:461 +# Generated at dronegen/tag.go:464 ################################################ kind: pipeline @@ -2862,20 +2892,23 @@ steps: - which curl || apk add --no-cache curl - |- cd "$WORKSPACE_DIR/go/artifacts" - for file in $(find . -type f ! -iname '*.sha256' ! -iname '*-unsigned.zip*'); do + find . -type f ! -iname '*.sha256' ! -iname '*-unsigned.zip*' | while read -r file; do # Skip files that are not results of this build # (e.g. tarballs from which OS packages are made) [ -f "$file.sha256" ] || continue name="$(basename "$file" | sed -E 's/(-|_)v?[0-9].*$//')" # extract part before -vX.Y.Z + description="Linux 32-bit DEB" + products="$name" if [ "$name" = "tsh" ]; then - products="teleport teleport-ent"; - else - products="$name" + products="teleport teleport-ent" + elif [ "$name" = "Teleport Connect" ]; then + description="Teleport Connect" + products="teleport teleport-ent" fi shasum="$(cat "$file.sha256" | cut -d ' ' -f 1)" - curl $CREDENTIALS --fail -o /dev/null -F description="Linux 32-bit DEB" -F os="linux" -F arch="386" -F "file=@$file" -F "sha256=$shasum" "$RELEASES_HOST/assets"; + curl $CREDENTIALS --fail -o /dev/null -F description="$description" -F os="linux" -F arch="386" -F "file=@$file" -F "sha256=$shasum" "$RELEASES_HOST/assets"; for product in $products; do status_code=$(curl $CREDENTIALS -o "$WORKSPACE_DIR/curl_out.txt" -w "%{http_code}" -F "product=$product" -F "version=$VERSION" -F notesMd="# Teleport $VERSION" -F status=draft "$RELEASES_HOST/releases") @@ -2884,7 +2917,7 @@ steps: cat $WORKSPACE_DIR/curl_out.txt exit 1 fi - curl $CREDENTIALS --fail -o /dev/null -X PUT "$RELEASES_HOST/releases/$product@$VERSION/assets/$(basename $file)" + curl $CREDENTIALS --fail -o /dev/null -X PUT "$RELEASES_HOST/releases/$product@$VERSION/assets/$(basename "$file" | sed 's/ /%20/g')" done done environment: @@ -3089,20 +3122,23 @@ steps: - which curl || apk add --no-cache curl - |- cd "$WORKSPACE_DIR/go/artifacts" - for file in $(find . -type f ! -iname '*.sha256' ! -iname '*-unsigned.zip*'); do + find . -type f ! -iname '*.sha256' ! -iname '*-unsigned.zip*' | while read -r file; do # Skip files that are not results of this build # (e.g. tarballs from which OS packages are made) [ -f "$file.sha256" ] || continue name="$(basename "$file" | sed -E 's/(-|_)v?[0-9].*$//')" # extract part before -vX.Y.Z + description="MacOS Intel" + products="$name" if [ "$name" = "tsh" ]; then - products="teleport teleport-ent"; - else - products="$name" + products="teleport teleport-ent" + elif [ "$name" = "Teleport Connect" ]; then + description="Teleport Connect" + products="teleport teleport-ent" fi shasum="$(cat "$file.sha256" | cut -d ' ' -f 1)" - curl $CREDENTIALS --fail -o /dev/null -F description="MacOS Intel" -F os="darwin" -F arch="amd64" -F "file=@$file" -F "sha256=$shasum" "$RELEASES_HOST/assets"; + curl $CREDENTIALS --fail -o /dev/null -F description="$description" -F os="darwin" -F arch="amd64" -F "file=@$file" -F "sha256=$shasum" "$RELEASES_HOST/assets"; for product in $products; do status_code=$(curl $CREDENTIALS -o "$WORKSPACE_DIR/curl_out.txt" -w "%{http_code}" -F "product=$product" -F "version=$VERSION" -F notesMd="# Teleport $VERSION" -F status=draft "$RELEASES_HOST/releases") @@ -3111,7 +3147,7 @@ steps: cat $WORKSPACE_DIR/curl_out.txt exit 1 fi - curl $CREDENTIALS --fail -o /dev/null -X PUT "$RELEASES_HOST/releases/$product@$VERSION/assets/$(basename $file)" + curl $CREDENTIALS --fail -o /dev/null -X PUT "$RELEASES_HOST/releases/$product@$VERSION/assets/$(basename "$file" | sed 's/ /%20/g')" done done environment: @@ -3294,20 +3330,23 @@ steps: - which curl || apk add --no-cache curl - |- cd "$WORKSPACE_DIR/go/artifacts" - for file in $(find . -type f ! -iname '*.sha256' ! -iname '*-unsigned.zip*'); do + find . -type f ! -iname '*.sha256' ! -iname '*-unsigned.zip*' | while read -r file; do # Skip files that are not results of this build # (e.g. tarballs from which OS packages are made) [ -f "$file.sha256" ] || continue name="$(basename "$file" | sed -E 's/(-|_)v?[0-9].*$//')" # extract part before -vX.Y.Z + description="MacOS Intel .pkg installer" + products="$name" if [ "$name" = "tsh" ]; then - products="teleport teleport-ent"; - else - products="$name" + products="teleport teleport-ent" + elif [ "$name" = "Teleport Connect" ]; then + description="Teleport Connect" + products="teleport teleport-ent" fi shasum="$(cat "$file.sha256" | cut -d ' ' -f 1)" - curl $CREDENTIALS --fail -o /dev/null -F description="MacOS Intel .pkg installer" -F os="darwin" -F arch="amd64" -F "file=@$file" -F "sha256=$shasum" "$RELEASES_HOST/assets"; + curl $CREDENTIALS --fail -o /dev/null -F description="$description" -F os="darwin" -F arch="amd64" -F "file=@$file" -F "sha256=$shasum" "$RELEASES_HOST/assets"; for product in $products; do status_code=$(curl $CREDENTIALS -o "$WORKSPACE_DIR/curl_out.txt" -w "%{http_code}" -F "product=$product" -F "version=$VERSION" -F notesMd="# Teleport $VERSION" -F status=draft "$RELEASES_HOST/releases") @@ -3316,7 +3355,7 @@ steps: cat $WORKSPACE_DIR/curl_out.txt exit 1 fi - curl $CREDENTIALS --fail -o /dev/null -X PUT "$RELEASES_HOST/releases/$product@$VERSION/assets/$(basename $file)" + curl $CREDENTIALS --fail -o /dev/null -X PUT "$RELEASES_HOST/releases/$product@$VERSION/assets/$(basename "$file" | sed 's/ /%20/g')" done done environment: @@ -3480,20 +3519,23 @@ steps: - which curl || apk add --no-cache curl - |- cd "$WORKSPACE_DIR/go/artifacts" - for file in $(find . -type f ! -iname '*.sha256' ! -iname '*-unsigned.zip*'); do + find . -type f ! -iname '*.sha256' ! -iname '*-unsigned.zip*' | while read -r file; do # Skip files that are not results of this build # (e.g. tarballs from which OS packages are made) [ -f "$file.sha256" ] || continue name="$(basename "$file" | sed -E 's/(-|_)v?[0-9].*$//')" # extract part before -vX.Y.Z + description="MacOS Intel .pkg installer (tsh client only)" + products="$name" if [ "$name" = "tsh" ]; then - products="teleport teleport-ent"; - else - products="$name" + products="teleport teleport-ent" + elif [ "$name" = "Teleport Connect" ]; then + description="Teleport Connect" + products="teleport teleport-ent" fi shasum="$(cat "$file.sha256" | cut -d ' ' -f 1)" - curl $CREDENTIALS --fail -o /dev/null -F description="MacOS Intel .pkg installer (tsh client only)" -F os="darwin" -F arch="amd64" -F "file=@$file" -F "sha256=$shasum" "$RELEASES_HOST/assets"; + curl $CREDENTIALS --fail -o /dev/null -F description="$description" -F os="darwin" -F arch="amd64" -F "file=@$file" -F "sha256=$shasum" "$RELEASES_HOST/assets"; for product in $products; do status_code=$(curl $CREDENTIALS -o "$WORKSPACE_DIR/curl_out.txt" -w "%{http_code}" -F "product=$product" -F "version=$VERSION" -F notesMd="# Teleport $VERSION" -F status=draft "$RELEASES_HOST/releases") @@ -3502,7 +3544,7 @@ steps: cat $WORKSPACE_DIR/curl_out.txt exit 1 fi - curl $CREDENTIALS --fail -o /dev/null -X PUT "$RELEASES_HOST/releases/$product@$VERSION/assets/$(basename $file)" + curl $CREDENTIALS --fail -o /dev/null -X PUT "$RELEASES_HOST/releases/$product@$VERSION/assets/$(basename "$file" | sed 's/ /%20/g')" done done environment: @@ -3632,20 +3674,23 @@ steps: - which curl || apk add --no-cache curl - |- cd "$WORKSPACE_DIR/go/artifacts" - for file in $(find . -type f ! -iname '*.sha256' ! -iname '*-unsigned.zip*'); do + find . -type f ! -iname '*.sha256' ! -iname '*-unsigned.zip*' | while read -r file; do # Skip files that are not results of this build # (e.g. tarballs from which OS packages are made) [ -f "$file.sha256" ] || continue name="$(basename "$file" | sed -E 's/(-|_)v?[0-9].*$//')" # extract part before -vX.Y.Z + description="Linux ARMv7 (32-bit)" + products="$name" if [ "$name" = "tsh" ]; then - products="teleport teleport-ent"; - else - products="$name" + products="teleport teleport-ent" + elif [ "$name" = "Teleport Connect" ]; then + description="Teleport Connect" + products="teleport teleport-ent" fi shasum="$(cat "$file.sha256" | cut -d ' ' -f 1)" - curl $CREDENTIALS --fail -o /dev/null -F description="Linux ARMv7 (32-bit)" -F os="linux" -F arch="arm" -F "file=@$file" -F "sha256=$shasum" "$RELEASES_HOST/assets"; + curl $CREDENTIALS --fail -o /dev/null -F description="$description" -F os="linux" -F arch="arm" -F "file=@$file" -F "sha256=$shasum" "$RELEASES_HOST/assets"; for product in $products; do status_code=$(curl $CREDENTIALS -o "$WORKSPACE_DIR/curl_out.txt" -w "%{http_code}" -F "product=$product" -F "version=$VERSION" -F notesMd="# Teleport $VERSION" -F status=draft "$RELEASES_HOST/releases") @@ -3654,7 +3699,7 @@ steps: cat $WORKSPACE_DIR/curl_out.txt exit 1 fi - curl $CREDENTIALS --fail -o /dev/null -X PUT "$RELEASES_HOST/releases/$product@$VERSION/assets/$(basename $file)" + curl $CREDENTIALS --fail -o /dev/null -X PUT "$RELEASES_HOST/releases/$product@$VERSION/assets/$(basename "$file" | sed 's/ /%20/g')" done done environment: @@ -3786,20 +3831,23 @@ steps: - which curl || apk add --no-cache curl - |- cd "$WORKSPACE_DIR/go/artifacts" - for file in $(find . -type f ! -iname '*.sha256' ! -iname '*-unsigned.zip*'); do + find . -type f ! -iname '*.sha256' ! -iname '*-unsigned.zip*' | while read -r file; do # Skip files that are not results of this build # (e.g. tarballs from which OS packages are made) [ -f "$file.sha256" ] || continue name="$(basename "$file" | sed -E 's/(-|_)v?[0-9].*$//')" # extract part before -vX.Y.Z + description="Linux ARM64/ARMv8 (64-bit)" + products="$name" if [ "$name" = "tsh" ]; then - products="teleport teleport-ent"; - else - products="$name" + products="teleport teleport-ent" + elif [ "$name" = "Teleport Connect" ]; then + description="Teleport Connect" + products="teleport teleport-ent" fi shasum="$(cat "$file.sha256" | cut -d ' ' -f 1)" - curl $CREDENTIALS --fail -o /dev/null -F description="Linux ARM64/ARMv8 (64-bit)" -F os="linux" -F arch="arm64" -F "file=@$file" -F "sha256=$shasum" "$RELEASES_HOST/assets"; + curl $CREDENTIALS --fail -o /dev/null -F description="$description" -F os="linux" -F arch="arm64" -F "file=@$file" -F "sha256=$shasum" "$RELEASES_HOST/assets"; for product in $products; do status_code=$(curl $CREDENTIALS -o "$WORKSPACE_DIR/curl_out.txt" -w "%{http_code}" -F "product=$product" -F "version=$VERSION" -F notesMd="# Teleport $VERSION" -F status=draft "$RELEASES_HOST/releases") @@ -3808,7 +3856,7 @@ steps: cat $WORKSPACE_DIR/curl_out.txt exit 1 fi - curl $CREDENTIALS --fail -o /dev/null -X PUT "$RELEASES_HOST/releases/$product@$VERSION/assets/$(basename $file)" + curl $CREDENTIALS --fail -o /dev/null -X PUT "$RELEASES_HOST/releases/$product@$VERSION/assets/$(basename "$file" | sed 's/ /%20/g')" done done environment: @@ -3832,7 +3880,7 @@ volumes: ################################################ # Generated using dronegen, do not edit by hand! # Use 'make dronegen' to update. -# Generated at dronegen/tag.go:461 +# Generated at dronegen/tag.go:464 ################################################ kind: pipeline @@ -3953,20 +4001,23 @@ steps: - which curl || apk add --no-cache curl - |- cd "$WORKSPACE_DIR/go/artifacts" - for file in $(find . -type f ! -iname '*.sha256' ! -iname '*-unsigned.zip*'); do + find . -type f ! -iname '*.sha256' ! -iname '*-unsigned.zip*' | while read -r file; do # Skip files that are not results of this build # (e.g. tarballs from which OS packages are made) [ -f "$file.sha256" ] || continue name="$(basename "$file" | sed -E 's/(-|_)v?[0-9].*$//')" # extract part before -vX.Y.Z + description="Linux ARM64/ARMv8 (64-bit) DEB" + products="$name" if [ "$name" = "tsh" ]; then - products="teleport teleport-ent"; - else - products="$name" + products="teleport teleport-ent" + elif [ "$name" = "Teleport Connect" ]; then + description="Teleport Connect" + products="teleport teleport-ent" fi shasum="$(cat "$file.sha256" | cut -d ' ' -f 1)" - curl $CREDENTIALS --fail -o /dev/null -F description="Linux ARM64/ARMv8 (64-bit) DEB" -F os="linux" -F arch="arm64" -F "file=@$file" -F "sha256=$shasum" "$RELEASES_HOST/assets"; + curl $CREDENTIALS --fail -o /dev/null -F description="$description" -F os="linux" -F arch="arm64" -F "file=@$file" -F "sha256=$shasum" "$RELEASES_HOST/assets"; for product in $products; do status_code=$(curl $CREDENTIALS -o "$WORKSPACE_DIR/curl_out.txt" -w "%{http_code}" -F "product=$product" -F "version=$VERSION" -F notesMd="# Teleport $VERSION" -F status=draft "$RELEASES_HOST/releases") @@ -3975,7 +4026,7 @@ steps: cat $WORKSPACE_DIR/curl_out.txt exit 1 fi - curl $CREDENTIALS --fail -o /dev/null -X PUT "$RELEASES_HOST/releases/$product@$VERSION/assets/$(basename $file)" + curl $CREDENTIALS --fail -o /dev/null -X PUT "$RELEASES_HOST/releases/$product@$VERSION/assets/$(basename "$file" | sed 's/ /%20/g')" done done environment: @@ -3999,7 +4050,7 @@ volumes: ################################################ # Generated using dronegen, do not edit by hand! # Use 'make dronegen' to update. -# Generated at dronegen/tag.go:461 +# Generated at dronegen/tag.go:464 ################################################ kind: pipeline @@ -4120,20 +4171,23 @@ steps: - which curl || apk add --no-cache curl - |- cd "$WORKSPACE_DIR/go/artifacts" - for file in $(find . -type f ! -iname '*.sha256' ! -iname '*-unsigned.zip*'); do + find . -type f ! -iname '*.sha256' ! -iname '*-unsigned.zip*' | while read -r file; do # Skip files that are not results of this build # (e.g. tarballs from which OS packages are made) [ -f "$file.sha256" ] || continue name="$(basename "$file" | sed -E 's/(-|_)v?[0-9].*$//')" # extract part before -vX.Y.Z + description="Linux ARMv7 (32-bit) DEB" + products="$name" if [ "$name" = "tsh" ]; then - products="teleport teleport-ent"; - else - products="$name" + products="teleport teleport-ent" + elif [ "$name" = "Teleport Connect" ]; then + description="Teleport Connect" + products="teleport teleport-ent" fi shasum="$(cat "$file.sha256" | cut -d ' ' -f 1)" - curl $CREDENTIALS --fail -o /dev/null -F description="Linux ARMv7 (32-bit) DEB" -F os="linux" -F arch="arm" -F "file=@$file" -F "sha256=$shasum" "$RELEASES_HOST/assets"; + curl $CREDENTIALS --fail -o /dev/null -F description="$description" -F os="linux" -F arch="arm" -F "file=@$file" -F "sha256=$shasum" "$RELEASES_HOST/assets"; for product in $products; do status_code=$(curl $CREDENTIALS -o "$WORKSPACE_DIR/curl_out.txt" -w "%{http_code}" -F "product=$product" -F "version=$VERSION" -F notesMd="# Teleport $VERSION" -F status=draft "$RELEASES_HOST/releases") @@ -4142,7 +4196,7 @@ steps: cat $WORKSPACE_DIR/curl_out.txt exit 1 fi - curl $CREDENTIALS --fail -o /dev/null -X PUT "$RELEASES_HOST/releases/$product@$VERSION/assets/$(basename $file)" + curl $CREDENTIALS --fail -o /dev/null -X PUT "$RELEASES_HOST/releases/$product@$VERSION/assets/$(basename "$file" | sed 's/ /%20/g')" done done environment: @@ -4166,7 +4220,7 @@ volumes: ################################################ # Generated using dronegen, do not edit by hand! # Use 'make dronegen' to update. -# Generated at dronegen/tag.go:461 +# Generated at dronegen/tag.go:464 ################################################ kind: pipeline @@ -4296,20 +4350,23 @@ steps: - which curl || apk add --no-cache curl - |- cd "$WORKSPACE_DIR/go/artifacts" - for file in $(find . -type f ! -iname '*.sha256' ! -iname '*-unsigned.zip*'); do + find . -type f ! -iname '*.sha256' ! -iname '*-unsigned.zip*' | while read -r file; do # Skip files that are not results of this build # (e.g. tarballs from which OS packages are made) [ -f "$file.sha256" ] || continue name="$(basename "$file" | sed -E 's/(-|_)v?[0-9].*$//')" # extract part before -vX.Y.Z + description="Linux ARM64/ARMv8 (64-bit) RPM" + products="$name" if [ "$name" = "tsh" ]; then - products="teleport teleport-ent"; - else - products="$name" + products="teleport teleport-ent" + elif [ "$name" = "Teleport Connect" ]; then + description="Teleport Connect" + products="teleport teleport-ent" fi shasum="$(cat "$file.sha256" | cut -d ' ' -f 1)" - curl $CREDENTIALS --fail -o /dev/null -F description="Linux ARM64/ARMv8 (64-bit) RPM" -F os="linux" -F arch="arm64" -F "file=@$file" -F "sha256=$shasum" "$RELEASES_HOST/assets"; + curl $CREDENTIALS --fail -o /dev/null -F description="$description" -F os="linux" -F arch="arm64" -F "file=@$file" -F "sha256=$shasum" "$RELEASES_HOST/assets"; for product in $products; do status_code=$(curl $CREDENTIALS -o "$WORKSPACE_DIR/curl_out.txt" -w "%{http_code}" -F "product=$product" -F "version=$VERSION" -F notesMd="# Teleport $VERSION" -F status=draft "$RELEASES_HOST/releases") @@ -4318,7 +4375,7 @@ steps: cat $WORKSPACE_DIR/curl_out.txt exit 1 fi - curl $CREDENTIALS --fail -o /dev/null -X PUT "$RELEASES_HOST/releases/$product@$VERSION/assets/$(basename $file)" + curl $CREDENTIALS --fail -o /dev/null -X PUT "$RELEASES_HOST/releases/$product@$VERSION/assets/$(basename "$file" | sed 's/ /%20/g')" done done environment: @@ -4347,7 +4404,7 @@ volumes: ################################################ # Generated using dronegen, do not edit by hand! # Use 'make dronegen' to update. -# Generated at dronegen/tag.go:461 +# Generated at dronegen/tag.go:464 ################################################ kind: pipeline @@ -4477,20 +4534,23 @@ steps: - which curl || apk add --no-cache curl - |- cd "$WORKSPACE_DIR/go/artifacts" - for file in $(find . -type f ! -iname '*.sha256' ! -iname '*-unsigned.zip*'); do + find . -type f ! -iname '*.sha256' ! -iname '*-unsigned.zip*' | while read -r file; do # Skip files that are not results of this build # (e.g. tarballs from which OS packages are made) [ -f "$file.sha256" ] || continue name="$(basename "$file" | sed -E 's/(-|_)v?[0-9].*$//')" # extract part before -vX.Y.Z + description="Linux ARMv7 (32-bit) RPM" + products="$name" if [ "$name" = "tsh" ]; then - products="teleport teleport-ent"; - else - products="$name" + products="teleport teleport-ent" + elif [ "$name" = "Teleport Connect" ]; then + description="Teleport Connect" + products="teleport teleport-ent" fi shasum="$(cat "$file.sha256" | cut -d ' ' -f 1)" - curl $CREDENTIALS --fail -o /dev/null -F description="Linux ARMv7 (32-bit) RPM" -F os="linux" -F arch="arm" -F "file=@$file" -F "sha256=$shasum" "$RELEASES_HOST/assets"; + curl $CREDENTIALS --fail -o /dev/null -F description="$description" -F os="linux" -F arch="arm" -F "file=@$file" -F "sha256=$shasum" "$RELEASES_HOST/assets"; for product in $products; do status_code=$(curl $CREDENTIALS -o "$WORKSPACE_DIR/curl_out.txt" -w "%{http_code}" -F "product=$product" -F "version=$VERSION" -F notesMd="# Teleport $VERSION" -F status=draft "$RELEASES_HOST/releases") @@ -4499,7 +4559,7 @@ steps: cat $WORKSPACE_DIR/curl_out.txt exit 1 fi - curl $CREDENTIALS --fail -o /dev/null -X PUT "$RELEASES_HOST/releases/$product@$VERSION/assets/$(basename $file)" + curl $CREDENTIALS --fail -o /dev/null -X PUT "$RELEASES_HOST/releases/$product@$VERSION/assets/$(basename "$file" | sed 's/ /%20/g')" done done environment: @@ -4639,20 +4699,23 @@ steps: - which curl || apk add --no-cache curl - |- cd "$WORKSPACE_DIR/go/artifacts" - for file in $(find . -type f ! -iname '*.sha256' ! -iname '*-unsigned.zip*'); do + find . -type f ! -iname '*.sha256' ! -iname '*-unsigned.zip*' | while read -r file; do # Skip files that are not results of this build # (e.g. tarballs from which OS packages are made) [ -f "$file.sha256" ] || continue name="$(basename "$file" | sed -E 's/(-|_)v?[0-9].*$//')" # extract part before -vX.Y.Z + description="Windows 64-bit (tsh client only)" + products="$name" if [ "$name" = "tsh" ]; then - products="teleport teleport-ent"; - else - products="$name" + products="teleport teleport-ent" + elif [ "$name" = "Teleport Connect" ]; then + description="Teleport Connect" + products="teleport teleport-ent" fi shasum="$(cat "$file.sha256" | cut -d ' ' -f 1)" - curl $CREDENTIALS --fail -o /dev/null -F description="Windows 64-bit (tsh client only)" -F os="windows" -F arch="amd64" -F "file=@$file" -F "sha256=$shasum" "$RELEASES_HOST/assets"; + curl $CREDENTIALS --fail -o /dev/null -F description="$description" -F os="windows" -F arch="amd64" -F "file=@$file" -F "sha256=$shasum" "$RELEASES_HOST/assets"; for product in $products; do status_code=$(curl $CREDENTIALS -o "$WORKSPACE_DIR/curl_out.txt" -w "%{http_code}" -F "product=$product" -F "version=$VERSION" -F notesMd="# Teleport $VERSION" -F status=draft "$RELEASES_HOST/releases") @@ -4661,7 +4724,7 @@ steps: cat $WORKSPACE_DIR/curl_out.txt exit 1 fi - curl $CREDENTIALS --fail -o /dev/null -X PUT "$RELEASES_HOST/releases/$product@$VERSION/assets/$(basename $file)" + curl $CREDENTIALS --fail -o /dev/null -X PUT "$RELEASES_HOST/releases/$product@$VERSION/assets/$(basename "$file" | sed 's/ /%20/g')" done done environment: @@ -5623,6 +5686,6 @@ volumes: name: drone-s3-debrepo-pvc --- kind: signature -hmac: 5a84f1468c34f05ab0815842e8760c683908b0eee7d5b431b26da434bf81f97f +hmac: 56fd923bee59e817331602c52b0fc28174664556ee50864b6c1147fd144d1243 ... diff --git a/dronegen/tag.go b/dronegen/tag.go index 922fc105f5e..e4a1f918a19 100644 --- a/dronegen/tag.go +++ b/dronegen/tag.go @@ -353,20 +353,23 @@ func tagCreateReleaseAssetCommands(b buildType, packageType string, extraQualifi `CREDENTIALS="--cert $WORKSPACE_DIR/releases.crt --key $WORKSPACE_DIR/releases.key"`, `which curl || apk add --no-cache curl`, fmt.Sprintf(`cd "$WORKSPACE_DIR/go/artifacts" -for file in $(find . -type f ! -iname '*.sha256' ! -iname '*-unsigned.zip*'); do +find . -type f ! -iname '*.sha256' ! -iname '*-unsigned.zip*' | while read -r file; do # Skip files that are not results of this build # (e.g. tarballs from which OS packages are made) [ -f "$file.sha256" ] || continue name="$(basename "$file" | sed -E 's/(-|_)v?[0-9].*$//')" # extract part before -vX.Y.Z + description="%[1]s" + products="$name" if [ "$name" = "tsh" ]; then - products="teleport teleport-ent"; - else - products="$name" + products="teleport teleport-ent" + elif [ "$name" = "Teleport Connect" ]; then + description="Teleport Connect" + products="teleport teleport-ent" fi shasum="$(cat "$file.sha256" | cut -d ' ' -f 1)" - curl $CREDENTIALS --fail -o /dev/null -F description="%[1]s" -F os="%[2]s" -F arch="%[3]s" -F "file=@$file" -F "sha256=$shasum" "$RELEASES_HOST/assets"; + curl $CREDENTIALS --fail -o /dev/null -F description="$description" -F os="%[2]s" -F arch="%[3]s" -F "file=@$file" -F "sha256=$shasum" "$RELEASES_HOST/assets"; for product in $products; do status_code=$(curl $CREDENTIALS -o "$WORKSPACE_DIR/curl_out.txt" -w "%%{http_code}" -F "product=$product" -F "version=$VERSION" -F notesMd="# Teleport $VERSION" -F status=draft "$RELEASES_HOST/releases") @@ -375,7 +378,7 @@ for file in $(find . -type f ! -iname '*.sha256' ! -iname '*-unsigned.zip*'); do cat $WORKSPACE_DIR/curl_out.txt exit 1 fi - curl $CREDENTIALS --fail -o /dev/null -X PUT "$RELEASES_HOST/releases/$product@$VERSION/assets/$(basename $file)" + curl $CREDENTIALS --fail -o /dev/null -X PUT "$RELEASES_HOST/releases/$product@$VERSION/assets/$(basename "$file" | sed 's/ /%%20/g')" done done`, b.Description(packageType, extraQualifications...), b.os, b.arch),