Deploy application for accepting GOR tokens
This commit is contained in:
parent
5fccab228b
commit
ce7997f825
@ -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
|
||||
```
|
||||
|
@ -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}"
|
||||
|
Loading…
Reference in New Issue
Block a user