-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add manifest generation and GH release
- Loading branch information
1 parent
e424baf
commit 5462fa4
Showing
3 changed files
with
92 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -evo pipefail | ||
ROOT="$(pwd)" | ||
|
||
export LINUX_AMD64_SHA256=$(cat ${ROOT}/artifacts/release/*.sha256 | grep hasura-mongodb-x86_64-unknown-linux-gnu | cut -f1 -d' ') | ||
export MACOS_AMD64_SHA256=$(cat ${ROOT}/artifacts/release/*.sha256 | grep hasura-mongodb-x86_64-apple-darwin | cut -f1 -d' ') | ||
export WINDOWS_AMD64_SHA256=$(cat ${ROOT}/artifacts/release/*.sha256 | grep hasura-mongodb-x86_64-pc-windows-msvc.exe | cut -f1 -d' ') | ||
export LINUX_ARM64_SHA256=$(cat ${ROOT}/artifacts/release/*.sha256 | grep hasura-mongodb-aarch64-unknown-linux-gnu | cut -f1 -d' ') | ||
export MACOS_ARM64_SHA256=$(cat ${ROOT}/artifacts/release/*.sha256 | grep hasura-mongodb-aarch64-apple-darwin | cut -f1 -d' ') | ||
|
||
(echo "cat <<EOF >${ROOT}/artifacts/release/manifest.yaml"; | ||
cat ${ROOT}/scripts/manifest.yaml; echo; echo EOF; | ||
)>${ROOT}/artifacts/release/manifest-tmp.yaml | ||
. ${ROOT}/artifacts/release/manifest-tmp.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: ndc-mongo | ||
version: "${VERSION}" | ||
shortDescription: "CLI plugin for Hasura ndc-mongo" | ||
homepage: https://hasura.io/connectors/mongo | ||
platforms: | ||
- selector: darwin-arm64 | ||
uri: "https://github.com/hasura/ndc-mongo/releases/download/${VERSION}/hasura-mongodb-aarch64-apple-darwin" | ||
sha256: "${MACOS_ARM64_SHA256}" | ||
bin: "hasura-ndc-mongo" | ||
files: | ||
- from: "./hasura-mongodb-aarch64-apple-darwin" | ||
to: "hasura-ndc-mongo" | ||
- selector: linux-arm64 | ||
uri: "https://github.com/hasura/ndc-mongo/releases/download/${VERSION}/hasura-mongodb-aarch64-unknown-linux-gnu" | ||
sha256: "${LINUX_ARM64_SHA256}" | ||
bin: "hasura-ndc-mongo" | ||
files: | ||
- from: "./hasura-mongodb-aarch64-unknown-linux-gnu" | ||
to: "hasura-ndc-mongo" | ||
- selector: darwin-amd64 | ||
uri: "https://github.com/hasura/ndc-mongo/releases/download/${VERSION}/hasura-mongodb-x86_64-apple-darwin" | ||
sha256: "${MACOS_AMD64_SHA256}" | ||
bin: "hasura-ndc-mongo" | ||
files: | ||
- from: "./hasura-mongodb-x86_64-apple-darwin" | ||
to: "hasura-ndc-mongo" | ||
- selector: windows-amd64 | ||
uri: "https://github.com/hasura/ndc-mongo/releases/download/${VERSION}/hasura-mongodb-x86_64-pc-windows-msvc.exe" | ||
sha256: "${WINDOWS_AMD64_SHA256}" | ||
bin: "hasura-ndc-mongo.exe" | ||
files: | ||
- from: "./hasura-mongodb-x86_64-pc-windows-msvc.exe" | ||
to: "hasura-ndc-mongo.exe" | ||
- selector: linux-amd64 | ||
uri: "https://github.com/hasura/ndc-mongo/releases/download/${VERSION}/hasura-mongodb-x86_64-unknown-linux-gnu" | ||
sha256: "${LINUX_AMD64_SHA256}" | ||
bin: "hasura-ndc-mongo" | ||
files: | ||
- from: "./hasura-mongodb-x86_64-unknown-linux-gnu" | ||
to: "hasura-ndc-mongo" |