Skip to content

Commit

Permalink
Print configuration for downloads page (influxdata#7862)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielnelson authored Jul 20, 2020
1 parent 6580c6a commit 641b1d6
Showing 1 changed file with 68 additions and 0 deletions.
68 changes: 68 additions & 0 deletions scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,79 @@ do
done < manifest
echo ""

package="$(grep *_amd64.deb manifest | cut -f2 -d' ')"
cat -<<EOF
{
"platform": "Ubuntu &amp; Debian",
"sha256":"$(sha256sum $package | cut -f1 -d' ')",
"code":[
"wget https://dl.influxdata.com/telegraf/releases/$package",
"sudo dpkg -i $package"
]
},
EOF
package="$(grep *.x86_64.rpm manifest | cut -f2 -d' ')"
cat -<<EOF
{
"platform": "RedHat &amp; CentOS",
"sha256":"$(sha256sum $package | cut -f1 -d' ')",
"code":[
"wget https://dl.influxdata.com/telegraf/releases/$package",
"sudo yum localinstall $package"
]
},
EOF
package="$(grep *windows_amd64.zip manifest | cut -f2 -d' ')"
cat -<<EOF
{
"platform": "Windows Binaries (64-bit)",
"sha256":"$(sha256sum $package | cut -f1 -d' ')",
"code":[
"wget https://dl.influxdata.com/telegraf/releases/$package",
"unzip $package"
]
},
EOF
package="$(grep *_linux_amd64.tar.gz manifest | cut -f2 -d' ')"
cat -<<EOF
{
"platform": "Linux Binaries (64-bit)",
"sha256":"$(sha256sum $package | cut -f1 -d' ')",
"code":[
"wget https://dl.influxdata.com/telegraf/releases/$package",
"tar xf $package"
]
},
EOF
package="$(grep *linux_i386.tar.gz manifest | cut -f2 -d' ')"
cat -<<EOF
{
"platform": "Linux Binaries (32-bit)",
"sha256":"$(sha256sum $package | cut -f1 -d' ')",
"code":[
"wget https://dl.influxdata.com/telegraf/releases/$package",
"tar xf $package"
]
},
EOF
package="$(grep *linux_armhf.tar.gz manifest | cut -f2 -d' ')"
cat -<<EOF
{
"platform": "Linux Binaries (ARM)",
"sha256":"$(sha256sum $package | cut -f1 -d' ')",
"code":[
"wget https://dl.influxdata.com/telegraf/releases/$package",
"tar xf $package"
]
}
EOF

aws s3 sync ./ "s3://$BUCKET/" \
--exclude "*" \
--include "*.tar.gz" \
--include "*.deb" \
--include "*.rpm" \
--include "*.zip" \
--include "*.DIGESTS" \
--include "*.asc" \
--acl public-read

0 comments on commit 641b1d6

Please sign in to comment.