fune/taskcluster/docker/sentry/prepare.sh
Mitchell Hentges d77f46527a Bug 1701137: Properly parse taskcluster Sentry secret r=aki
Taskcluster secrets are not provided to clients in the same
format that they are set. Rather, the YAML is rendered
to JSON, and it's wrapped in a larger object that also
contains the `expires` timestamp.

Correctly parse the JSON and remove the dependency on `yq`.

Differential Revision: https://phabricator.services.mozilla.com/D109907
2021-03-26 18:02:14 +00:00

19 lines
390 B
Bash
Executable file

#!/bin/sh
set -o errexit
set -o nounset
set -o pipefail
set -o xtrace
apt-get -y update
# Install:
# * curl to fetch sentry-cli
# * jq to parse hgmo pushlog
apt-get install -y \
curl \
jq
# Install sentry-cli to publish releases
curl -L https://github.com/getsentry/sentry-cli/releases/download/1.63.1/sentry-cli-Linux-x86_64 -o /usr/bin/sentry-cli
chmod +x /usr/bin/sentry-cli