Compare commits
11 Commits
Author | SHA1 | Date | |
---|---|---|---|
df579f3ba5 | |||
aa3b393d7a | |||
ed9c88c110 | |||
a8c3a81621 | |||
a29fb929fd | |||
fb6f7e5778 | |||
21a21fa3a8 | |||
faadcb6d45 | |||
61c97278e6 | |||
b73fffa4a4 | |||
77a1d9f702 |
@ -2,6 +2,10 @@ name: Publish ApplicationRecord to Registry
|
|||||||
on:
|
on:
|
||||||
release:
|
release:
|
||||||
types: [published]
|
types: [published]
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
- '*'
|
||||||
|
|
||||||
env:
|
env:
|
||||||
CERC_REGISTRY_USER_KEY: ${{ secrets.CICD_VAASL_LACONIC_USER_KEY }}
|
CERC_REGISTRY_USER_KEY: ${{ secrets.CICD_VAASL_LACONIC_USER_KEY }}
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "@cerc-io/webapp-hello-world",
|
"name": "@lcn-demo/webapp-hello-world-payments",
|
||||||
"version": "0.1.3",
|
"version": "0.1.6",
|
||||||
"repository": "https://git.vdb.to/cerc-io/webapp-hello-world",
|
"repository": "https://git.vdb.to/zramsay/webapp-hello-world-payment",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "next dev",
|
"dev": "next dev",
|
||||||
"build": "next build",
|
"build": "next build",
|
||||||
|
@ -20,11 +20,11 @@ rcd_app_version=$(jq -r '.version' package.json | sed 's/null//')
|
|||||||
cat <<EOF > "$CONFIG_FILE"
|
cat <<EOF > "$CONFIG_FILE"
|
||||||
services:
|
services:
|
||||||
registry:
|
registry:
|
||||||
rpcEndpoint: '${CERC_REGISTRY_RPC_ENDPOINT:-http://testnet-a-1.dev.vaasl.io:26657}'
|
rpcEndpoint: '${CERC_REGISTRY_RPC_ENDPOINT:-https://laconicd.laconic.com}'
|
||||||
gqlEndpoint: '${CERC_REGISTRY_GQL_ENDPOINT:-http://testnet-a-1.dev.vaasl.io:9473/api}'
|
gqlEndpoint: '${CERC_REGISTRY_GQL_ENDPOINT:-https://laconicd.laconic.com/api}'
|
||||||
chainId: ${CERC_REGISTRY_CHAIN_ID:-laconic-08062024}
|
chainId: ${CERC_REGISTRY_CHAIN_ID:-laconic_9000-1}
|
||||||
gas: 900000
|
gas: 900000
|
||||||
fees: 900000alnt
|
fees: 1900000alnt
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
next_ver=$(laconic -c $CONFIG_FILE registry record list --type ApplicationRecord --all --name "$rcd_name" 2>/dev/null | jq -r -s ".[] | sort_by(.createTime) | reverse | [ .[] | select(.bondId == \"$CERC_REGISTRY_BOND_ID\") ] | .[0].attributes.version" | awk -F. -v OFS=. '{$NF += 1 ; print}')
|
next_ver=$(laconic -c $CONFIG_FILE registry record list --type ApplicationRecord --all --name "$rcd_name" 2>/dev/null | jq -r -s ".[] | sort_by(.createTime) | reverse | [ .[] | select(.bondId == \"$CERC_REGISTRY_BOND_ID\") ] | .[0].attributes.version" | awk -F. -v OFS=. '{$NF += 1 ; print}')
|
||||||
|
@ -11,9 +11,9 @@ rcd_app_version=$(jq -r '.version' package.json | sed 's/null//')
|
|||||||
cat <<EOF > "$CONFIG_FILE"
|
cat <<EOF > "$CONFIG_FILE"
|
||||||
services:
|
services:
|
||||||
registry:
|
registry:
|
||||||
rpcEndpoint: '${CERC_REGISTRY_RPC_ENDPOINT:-http://testnet-a-1.dev.vaasl.io:26657}'
|
rpcEndpoint: '${CERC_REGISTRY_RPC_ENDPOINT:-https://laconicd.laconic.com}'
|
||||||
gqlEndpoint: '${CERC_REGISTRY_GQL_ENDPOINT:-http://testnet-a-1.dev.vaasl.io:9473/api}'
|
gqlEndpoint: '${CERC_REGISTRY_GQL_ENDPOINT:-https://laconicd.laconic.com/api}'
|
||||||
chainId: ${CERC_REGISTRY_CHAIN_ID:-laconic-08062024}
|
chainId: ${CERC_REGISTRY_CHAIN_ID:-laconic_9000-1}
|
||||||
gas: 900000
|
gas: 900000
|
||||||
fees: 900000alnt
|
fees: 900000alnt
|
||||||
EOF
|
EOF
|
||||||
@ -25,7 +25,7 @@ if [ -z "$CERC_REGISTRY_APP_LRN" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
PAYMENT_TX=$(laconic -c $CONFIG_FILE registry tokens send \
|
PAYMENT_TX=$(laconic -c $CONFIG_FILE registry tokens send \
|
||||||
--address $CERC_REGISTRY_DEPLOYMENT_REQUEST_PAYMENT_TO \
|
--address laconic13eq42rat3aurnfj6pu32yl00zyhl8sent97efe \
|
||||||
--user-key "${CERC_REGISTRY_DEPLOYMENT_REQUEST_USER_KEY}" \
|
--user-key "${CERC_REGISTRY_DEPLOYMENT_REQUEST_USER_KEY}" \
|
||||||
--bond-id "${CERC_REGISTRY_DEPLOYMENT_REQUEST_BOND_ID}" \
|
--bond-id "${CERC_REGISTRY_DEPLOYMENT_REQUEST_BOND_ID}" \
|
||||||
--type alnt \
|
--type alnt \
|
||||||
@ -45,7 +45,7 @@ record:
|
|||||||
application: "$CERC_REGISTRY_APP_LRN@$rcd_app_version"
|
application: "$CERC_REGISTRY_APP_LRN@$rcd_app_version"
|
||||||
dns: "$CERC_REGISTRY_DEPLOYMENT_HOSTNAME"
|
dns: "$CERC_REGISTRY_DEPLOYMENT_HOSTNAME"
|
||||||
deployment: "$CERC_REGISTRY_DEPLOYMENT_LRN"
|
deployment: "$CERC_REGISTRY_DEPLOYMENT_LRN"
|
||||||
to: $CERC_REGISTRY_DEPLOYMENT_REQUEST_PAYMENT_TO
|
to: laconic13eq42rat3aurnfj6pu32yl00zyhl8sent97efe
|
||||||
payment: $PAYMENT_TX
|
payment: $PAYMENT_TX
|
||||||
config:
|
config:
|
||||||
env:
|
env:
|
||||||
|
Loading…
Reference in New Issue
Block a user