Deploy application for accepting GOR tokens
This commit is contained in:
parent
5fccab228b
commit
ce7997f825
@ -36,9 +36,8 @@
|
|||||||
|
|
||||||
* Add configuration for the app:
|
* Add configuration for the app:
|
||||||
|
|
||||||
<!-- TODO: Use a release -->
|
|
||||||
```bash
|
```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
|
# Fill in the required values
|
||||||
nano .app.env
|
nano .app.env
|
||||||
@ -49,12 +48,11 @@
|
|||||||
### gor-deploy
|
### gor-deploy
|
||||||
|
|
||||||
* Deploy `gor-deploy` App:
|
* Deploy `gor-deploy` App:
|
||||||
<!-- TODO: Change deploy dns -->
|
|
||||||
```bash
|
```bash
|
||||||
# In gor-deploy/deploy dir
|
# In gor-deploy/deploy dir
|
||||||
docker run -it \
|
docker run -it \
|
||||||
-v ./:/app/deploy -w /app/deploy \
|
-v ./:/app/deploy -w /app/deploy \
|
||||||
-e DEPLOYMENT_DNS=mtm-deploy \
|
-e DEPLOYMENT_DNS=gor-deploy \
|
||||||
cerc/laconic-registry-cli:latest \
|
cerc/laconic-registry-cli:latest \
|
||||||
./deploy.sh
|
./deploy.sh
|
||||||
```
|
```
|
||||||
|
@ -12,15 +12,12 @@ echo "Using AUTHORITY: $AUTHORITY"
|
|||||||
REPO_URL="https://git.vdb.to/LaconicNetwork/gor-deploy"
|
REPO_URL="https://git.vdb.to/LaconicNetwork/gor-deploy"
|
||||||
|
|
||||||
# Get the latest commit hash for a branch
|
# Get the latest commit hash for a branch
|
||||||
# TODO: Change to main before merging PR
|
BRANCH_NAME="main"
|
||||||
BRANCH_NAME="sk-gor-deploy"
|
|
||||||
LATEST_HASH=$(git ls-remote $REPO_URL refs/heads/$BRANCH_NAME | awk '{print $1}')
|
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)
|
PACKAGE_VERSION=$(curl -s $REPO_URL/raw/branch/$BRANCH_NAME/package.json | jq -r .version)
|
||||||
|
|
||||||
# TODO: Update app name
|
APP_NAME=gor-deploy
|
||||||
APP_NAME=mtm-deploy
|
|
||||||
|
|
||||||
echo "Repo: ${REPO_URL}"
|
echo "Repo: ${REPO_URL}"
|
||||||
echo "Latest hash: ${LATEST_HASH}"
|
echo "Latest hash: ${LATEST_HASH}"
|
||||||
|
Loading…
Reference in New Issue
Block a user