Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Print configuration for downloads page #7862

Merged
merged 1 commit into from
Jul 20, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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