Move solana connection init inside functions
This commit is contained in:
+1
-1
@@ -19,7 +19,7 @@
|
||||
# Builds image cerc/laconic-registry-cli:latest
|
||||
```
|
||||
|
||||
* Configure `userKey` and `bondId` in the registry CLI config:
|
||||
* Configure `userKey` and `bondId` in the [registry CLI config](./config.yml):
|
||||
|
||||
```bash
|
||||
nano config.yml
|
||||
|
||||
+5
-3
@@ -11,11 +11,13 @@ echo "Using AUTHORITY: $AUTHORITY"
|
||||
# Repository URL
|
||||
REPO_URL="https://git.vdb.to/LaconicNetwork/gor-deploy"
|
||||
|
||||
# Get the latest commit hash from the repository
|
||||
LATEST_HASH=$(git ls-remote $REPO_URL HEAD | awk '{print $1}')
|
||||
# Get the latest commit hash for a branch
|
||||
# TODO: Change to main before merging PR
|
||||
BRANCH_NAME="sk-gor-deploy"
|
||||
LATEST_HASH=$(git ls-remote $REPO_URL refs/heads/$BRANCH_NAME | awk '{print $1}')
|
||||
|
||||
# TODO: Use a release
|
||||
PACKAGE_VERSION=$(curl -s $REPO_URL/raw/branch/sk-gor-deploy/package.json | jq -r .version)
|
||||
PACKAGE_VERSION=$(curl -s $REPO_URL/raw/branch/$BRANCH_NAME/package.json | jq -r .version)
|
||||
|
||||
# TODO: Update app name
|
||||
APP_NAME=mtm-deploy
|
||||
|
||||
Reference in New Issue
Block a user