Skip to content

Commit

Permalink
Rename everything
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-chambers committed Mar 15, 2024
1 parent 1dbac7f commit 8ea849f
Show file tree
Hide file tree
Showing 7 changed files with 33 additions and 37 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ jobs:
- name: Build connector definition
run: |
set -e pipefail
export DOCKER_IMAGE="ghcr.io/hasura/mongodb-connector:$GITHUB_REF_NAME"
export DOCKER_IMAGE="ghcr.io/hasura/ndc-mongodb:$GITHUB_REF_NAME"
export CLI_VERSION=$GITHUB_REF_NAME
make build
working-directory: ./connector-definition
Expand Down Expand Up @@ -168,11 +168,11 @@ jobs:
cargo build --release --package=mongodb-cli-plugin
mkdir -p release
mv -v target/${{ matrix.target }}/release/hasura-mongodb release/hasura-mongodb-${{ matrix.target }}${{ matrix.extension }}
mv -v target/${{ matrix.target }}/release/mongodb-cli-plugin release/mongodb-cli-plugin-${{ matrix.target }}${{ matrix.extension }}
- uses: actions/upload-artifact@v4
with:
name: hasura-mongodb-${{ matrix.target }}${{ matrix.extension }}
name: mongodb-cli-plugin-${{ matrix.target }}${{ matrix.extension }}
path: release
if-no-files-found: error

Expand Down
4 changes: 0 additions & 4 deletions crates/cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@ name = "mongodb-cli-plugin"
edition = "2021"
version.workspace = true

[[bin]]
name = "hasura-mongodb"
path = "./src/main.rs"

[dependencies]
configuration = { path = "../configuration" }
mongodb-agent-common = { path = "../mongodb-agent-common" }
Expand Down
2 changes: 1 addition & 1 deletion deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#
set -euo pipefail

IMAGE_PATH=ghcr.io/hasura/ndc-mongo
IMAGE_PATH=ghcr.io/hasura/ndc-mongodb

if [ -z "${1+x}" ]; then
echo "Expected argument of the form refs/heads/<branch name> or refs/tags/<tag name>."
Expand Down
2 changes: 1 addition & 1 deletion nix/docker-cli-plugin.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ dockerTools.buildLayeredImage {
inherit name;
created = "now";
config = {
Entrypoint = [ "${mongodb-cli-plugin}/bin/hasura-mongodb" ];
Entrypoint = [ "${mongodb-cli-plugin}/bin/mongodb-cli-plugin" ];
};
}
2 changes: 1 addition & 1 deletion nix/docker.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
, dockerTools
, lib
, architecture ? null
, name ? "ghcr.io/hasura/mongodb-connector"
, name ? "ghcr.io/hasura/ndc-mongodb"

# See config options at https://github.com/moby/docker-image-spec/blob/main/spec.md
, extraConfig ? { }
Expand Down
10 changes: 5 additions & 5 deletions scripts/generate-manifest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
set -evo pipefail
ROOT="$(pwd)"

export LINUX_AMD64_SHA256=$(cat ${ROOT}/release/artifacts/sha256sum | grep hasura-mongodb-x86_64-unknown-linux-gnu | cut -f1 -d' ')
export MACOS_AMD64_SHA256=$(cat ${ROOT}/release/artifacts/sha256sum | grep hasura-mongodb-x86_64-apple-darwin | cut -f1 -d' ')
export WINDOWS_AMD64_SHA256=$(cat ${ROOT}/release/artifacts/sha256sum | grep hasura-mongodb-x86_64-pc-windows-msvc.exe | cut -f1 -d' ')
export LINUX_ARM64_SHA256=$(cat ${ROOT}/release/artifacts/sha256sum | grep hasura-mongodb-aarch64-unknown-linux-gnu | cut -f1 -d' ')
export MACOS_ARM64_SHA256=$(cat ${ROOT}/release/artifacts/sha256sum | grep hasura-mongodb-aarch64-apple-darwin | cut -f1 -d' ')
export LINUX_AMD64_SHA256=$(cat ${ROOT}/release/artifacts/sha256sum | grep mongodb-cli-plugin-x86_64-unknown-linux-gnu | cut -f1 -d' ')
export MACOS_AMD64_SHA256=$(cat ${ROOT}/release/artifacts/sha256sum | grep mongodb-cli-plugin-x86_64-apple-darwin | cut -f1 -d' ')
export WINDOWS_AMD64_SHA256=$(cat ${ROOT}/release/artifacts/sha256sum | grep mongodb-cli-plugin-x86_64-pc-windows-msvc.exe | cut -f1 -d' ')
export LINUX_ARM64_SHA256=$(cat ${ROOT}/release/artifacts/sha256sum | grep mongodb-cli-plugin-aarch64-unknown-linux-gnu | cut -f1 -d' ')
export MACOS_ARM64_SHA256=$(cat ${ROOT}/release/artifacts/sha256sum | grep mongodb-cli-plugin-aarch64-apple-darwin | cut -f1 -d' ')

(echo "cat <<EOF >${ROOT}/release/manifest.yaml";
cat ${ROOT}/scripts/manifest.yaml; echo; echo EOF;
Expand Down
44 changes: 22 additions & 22 deletions scripts/manifest.yaml
Original file line number Diff line number Diff line change
@@ -1,40 +1,40 @@
name: ndc-mongo
name: mongodb
version: "${VERSION}"
shortDescription: "CLI plugin for Hasura ndc-mongo"
shortDescription: "CLI plugin for Hasura ndc-mongodb"
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"
uri: "https://github.com/hasura/ndc-mongodb/releases/download/${VERSION}/mongodb-cli-plugin-aarch64-apple-darwin"
sha256: "${MACOS_ARM64_SHA256}"
bin: "hasura-ndc-mongo"
bin: "hasura-mongodb"
files:
- from: "./hasura-mongodb-aarch64-apple-darwin"
to: "hasura-ndc-mongo"
- from: "./mongodb-cli-plugin-aarch64-apple-darwin"
to: "hasura-mongodb"
- selector: linux-arm64
uri: "https://github.com/hasura/ndc-mongo/releases/download/${VERSION}/hasura-mongodb-aarch64-unknown-linux-gnu"
uri: "https://github.com/hasura/ndc-mongodb/releases/download/${VERSION}/mongodb-cli-plugin-aarch64-unknown-linux-gnu"
sha256: "${LINUX_ARM64_SHA256}"
bin: "hasura-ndc-mongo"
bin: "hasura-mongodb"
files:
- from: "./hasura-mongodb-aarch64-unknown-linux-gnu"
to: "hasura-ndc-mongo"
- from: "./mongodb-cli-plugin-aarch64-unknown-linux-gnu"
to: "hasura-mongodb"
- selector: darwin-amd64
uri: "https://github.com/hasura/ndc-mongo/releases/download/${VERSION}/hasura-mongodb-x86_64-apple-darwin"
uri: "https://github.com/hasura/ndc-mongodb/releases/download/${VERSION}/mongodb-cli-plugin-x86_64-apple-darwin"
sha256: "${MACOS_AMD64_SHA256}"
bin: "hasura-ndc-mongo"
bin: "hasura-mongodb"
files:
- from: "./hasura-mongodb-x86_64-apple-darwin"
to: "hasura-ndc-mongo"
- from: "./mongodb-cli-plugin-x86_64-apple-darwin"
to: "hasura-mongodb"
- selector: windows-amd64
uri: "https://github.com/hasura/ndc-mongo/releases/download/${VERSION}/hasura-mongodb-x86_64-pc-windows-msvc.exe"
uri: "https://github.com/hasura/ndc-mongodb/releases/download/${VERSION}/mongodb-cli-plugin-x86_64-pc-windows-msvc.exe"
sha256: "${WINDOWS_AMD64_SHA256}"
bin: "hasura-ndc-mongo.exe"
bin: "hasura-mongodb.exe"
files:
- from: "./hasura-mongodb-x86_64-pc-windows-msvc.exe"
to: "hasura-ndc-mongo.exe"
- from: "./mongodb-cli-plugin-x86_64-pc-windows-msvc.exe"
to: "hasura-mongodb.exe"
- selector: linux-amd64
uri: "https://github.com/hasura/ndc-mongo/releases/download/${VERSION}/hasura-mongodb-x86_64-unknown-linux-gnu"
uri: "https://github.com/hasura/ndc-mongodb/releases/download/${VERSION}/mongodb-cli-plugin-x86_64-unknown-linux-gnu"
sha256: "${LINUX_AMD64_SHA256}"
bin: "hasura-ndc-mongo"
bin: "hasura-mongodb"
files:
- from: "./hasura-mongodb-x86_64-unknown-linux-gnu"
to: "hasura-ndc-mongo"
- from: "./mongodb-cli-plugin-x86_64-unknown-linux-gnu"
to: "hasura-mongodb"

0 comments on commit 8ea849f

Please sign in to comment.