Deploy application for accepting GOR tokens

This commit is contained in:
Nabarun 2025-07-21 18:43:33 +05:30
parent 5fccab228b
commit ce7997f825
2 changed files with 4 additions and 9 deletions

View File

@ -36,9 +36,8 @@
* Add configuration for the app:
<!-- TODO: Use a release -->
```bash
curl -s https://git.vdb.to/LaconicNetwork/gor-deploy/raw/branch/sk-gor-deploy/.env.example -o .app.env
curl -s https://git.vdb.to/LaconicNetwork/gor-deploy/src/branch/main/.env.example -o .app.env
# Fill in the required values
nano .app.env
@ -49,12 +48,11 @@
### gor-deploy
* Deploy `gor-deploy` App:
<!-- TODO: Change deploy dns -->
```bash
# In gor-deploy/deploy dir
docker run -it \
-v ./:/app/deploy -w /app/deploy \
-e DEPLOYMENT_DNS=mtm-deploy \
-e DEPLOYMENT_DNS=gor-deploy \
cerc/laconic-registry-cli:latest \
./deploy.sh
```

View File

@ -12,15 +12,12 @@ echo "Using AUTHORITY: $AUTHORITY"
REPO_URL="https://git.vdb.to/LaconicNetwork/gor-deploy"
# Get the latest commit hash for a branch
# TODO: Change to main before merging PR
BRANCH_NAME="sk-gor-deploy"
BRANCH_NAME="main"
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/$BRANCH_NAME/package.json | jq -r .version)
# TODO: Update app name
APP_NAME=mtm-deploy
APP_NAME=gor-deploy
echo "Repo: ${REPO_URL}"
echo "Latest hash: ${LATEST_HASH}"