graphql-engine/cli-ext/scripts/generate-manifest.sh
Aravind Shankar bb63d7e60e
cli: allow managing actions (#3859)
Co-authored-by: Rishichandra Wawhal <rishichandra.wawhal@gmail.com>
Co-authored-by: Rikin Kachhia <54616969+rikinsk@users.noreply.github.com>
Co-authored-by: Aravind <aravindkp@outlook.in>
Co-authored-by: Anon Ray <ecthiender@users.noreply.github.com>
Co-authored-by: Shahidh K Muhammed <muhammedshahid.k@gmail.com>
2020-02-24 21:44:46 +05:30

23 lines
931 B
Bash
Executable File

#!/usr/bin/env bash
set -evo pipefail
IFS=$'\n\t'
ROOT="$(readlink -f ${BASH_SOURCE[0]%/*}/../../)"
export VERSION=$(${ROOT}/scripts/get-version.sh)
export BUCKET_URL=https://github.com/hasura/graphql-engine/releases/download/${VERSION}
export LINUX_SHA256=$(cat ${ROOT}/cli-ext/bin/command-linux.tar.gz.sha256 | cut -f1 -d' ')
export MACOS_SHA256=$(cat ${ROOT}/cli-ext/bin/command-macos.tar.gz.sha256 | cut -f1 -d' ')
export WINDOWS_SHA256=$(cat ${ROOT}/cli-ext/bin/command-win.zip.sha256 | cut -f1 -d' ')
( echo "cat <<EOF >${ROOT}/cli-ext/bin/manifest.yaml";
cat ${ROOT}/cli-ext/scripts/manifest.yaml;
) >${ROOT}/cli-ext/bin/tmp.yaml
. ${ROOT}/cli-ext/bin/tmp.yaml
export BUCKET_URL=https://${CIRCLE_BUILD_NUM}-137724480-gh.circle-artifacts.com/0/cli_ext
( echo "cat <<EOF >${ROOT}/cli-ext/bin/manifest-dev.yaml";
cat ${ROOT}/cli-ext/scripts/manifest.yaml;
) >${ROOT}/cli-ext/bin/tmp.yaml
. ${ROOT}/cli-ext/bin/tmp.yaml