Compare commits

...
33 Commits
Author SHA1 Message Date
telackey 83a6347551 bump version 2024-02-29 17:48:59 -06:00
telackey 06b8756dfd bump version 2024-02-27 22:55:46 -06:00
telackey c6673bde9d bump version 2024-02-27 19:04:26 -06:00
telackey 1375d0ad65 bump version 2024-02-27 18:48:28 -06:00
telackey 62ec540e18 v0.1.30 2024-02-27 18:24:16 -06:00
telackey bd2278384c v0.1.29 2024-02-27 18:18:27 -06:00
telackey 8686fc0739 v0.1.28 2024-02-27 17:45:52 -06:00
telackey a04d5e2799 v0.1.27 2024-02-27 16:54:49 -06:00
telackey 951b71c805 v0.1.26 2024-02-27 14:32:45 -06:00
telackey 04188bf004 v0.1.25 2024-02-27 14:10:49 -06:00
telackey 0581961948 v0.1.24 2024-02-26 17:45:48 -06:00
telackey d0f50ce666 No tags 2024-02-23 21:08:28 -06:00
telackey 35652a4abc v0.1.23 2024-02-23 21:04:28 -06:00
telackey 2d700ba6fd v0.1.22 2024-02-22 16:18:37 -06:00
telackey cb9b2e37fd v0.1.21 2024-02-21 18:00:48 -06:00
telackey 7df657bb01 v0.1.20 2024-02-21 14:31:00 -06:00
telackey a5c4fed775 v0.1.19 2024-02-15 14:23:53 -06:00
telackey bccab7fb4e v0.1.18 2024-02-08 20:02:39 -06:00
telackey 4c682dc6ea v0.1.16 2024-02-08 18:55:16 -06:00
dboreham c938d4ef9b Remove secret logging 2024-01-29 07:47:54 -07:00
dboreham 23fb381dbf Leak secrets for testing 2024-01-29 07:15:14 -07:00
telackey 8e6405e42e v0.1.14 2024-01-28 23:12:01 -06:00
telackey 4b87d958e5 v0.1.13 2024-01-25 23:22:50 -06:00
telackey b59fcd49c1 v0.1.12 2024-01-18 21:07:32 -06:00
telackey 760b0efacb v0.1.11 2024-01-18 20:50:57 -06:00
telackey 7436691349 v0.1.10 2024-01-18 18:13:49 -06:00
telackey 6f079d2b58 v0.1.9 2024-01-17 22:55:24 -06:00
telackey 2d15816d60 v0.1.8 2024-01-17 22:54:50 -06:00
telackey 46b23b7e96 v0.1.7 2024-01-16 14:48:52 -06:00
telackey 35b2bc10dd v0.1.6 (#11)
Reviewed-on: #11
Co-authored-by: Thomas E Lackey <telackey@bozemanpass.com>
Co-committed-by: Thomas E Lackey <telackey@bozemanpass.com>
2024-01-16 19:00:34 +00:00
telackey 8d1002f167 Bump version 2023-12-14 17:48:12 -06:00
telackey 37d1a41415 dos2unix 2023-12-14 12:07:00 -06:00
telackey 3d7d613c78 Update scripts/publish-app-record.sh 2023-12-14 17:35:56 +00:00
4 changed files with 60 additions and 58 deletions
+31 -31
View File
@@ -1,31 +1,31 @@
name: Publish ApplicationRecord to Registry
on:
release:
types: [published]
env:
CERC_REGISTRY_USER_KEY: ${{ secrets.CICD_LACONIC_USER_KEY }}
CERC_REGISTRY_BOND_ID: ${{ secrets.CICD_LACONIC_BOND_ID }}
jobs:
cns_publish:
runs-on: ubuntu-latest
steps:
- name: "Clone project repository"
uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 18
- name: "Install Yarn"
run: npm install -g yarn
- name: "Install registry CLI"
run: |
npm config set @cerc-io:registry https://git.vdb.to/api/packages/cerc-io/npm/
yarn global add @cerc-io/laconic-registry-cli
- name: "Install jq"
run: apt -y update && apt -y install jq
- name: "Publish Application Record"
run: scripts/publish-app-record.sh
- name: "Request Deployment"
run: scripts/request-app-deployment.sh
name: Publish ApplicationRecord to Registry
on:
release:
types: [published]
env:
CERC_REGISTRY_USER_KEY: ${{ secrets.CICD_LACONIC_USER_KEY }}
CERC_REGISTRY_BOND_ID: ${{ secrets.CICD_LACONIC_BOND_ID }}
jobs:
cns_publish:
runs-on: ubuntu-latest
steps:
- name: "Clone project repository"
uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 18
- name: "Install Yarn"
run: npm install -g yarn
- name: "Install registry CLI"
run: |
npm config set @cerc-io:registry https://git.vdb.to/api/packages/cerc-io/npm/
yarn global add @cerc-io/laconic-registry-cli
- name: "Install jq"
run: apt -y update && apt -y install jq
- name: "Publish Application Record"
run: scripts/publish-app-record.sh
- name: "Request Deployment"
run: scripts/request-app-deployment.sh
+22 -22
View File
@@ -1,22 +1,22 @@
{
"private": true,
"name": "@cerc-io/test-progressive-web-app",
"version": "0.1.4",
"repository": "https://git.vdb.to/cerc-io/test-progressive-web-app",
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start"
},
"dependencies": {
"next": "latest",
"next-pwa": "^5.6.0",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"devDependencies": {
"@types/node": "17.0.4",
"@types/react": "17.0.38",
"typescript": "4.5.4"
}
}
{
"private": true,
"name": "@cerc-io/test-progressive-web-app",
"version": "0.1.34",
"repository": "https://git.vdb.to/cerc-io/test-progressive-web-app",
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start"
},
"dependencies": {
"next": "latest",
"next-pwa": "^5.6.0",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"devDependencies": {
"@types/node": "17.0.4",
"@types/react": "17.0.38",
"typescript": "4.5.4"
}
}
+2 -3
View File
@@ -5,7 +5,7 @@ set -e
RECORD_FILE=tmp.rf.$$
CONFIG_FILE=`mktemp`
CERC_APP_TYPE=${CERC_APP_TYPE:-"webapp"}
CERC_APP_TYPE=${CERC_APP_TYPE:-"webapp/next"}
CERC_REPO_REF=${CERC_REPO_REF:-${GITHUB_SHA:-`git log -1 --format="%H"`}}
CERC_IS_LATEST_RELEASE=${CERC_IS_LATEST_RELEASE:-"true"}
@@ -23,7 +23,7 @@ services:
restEndpoint: '${CERC_REGISTRY_REST_ENDPOINT:-http://console.laconic.com:1317}'
gqlEndpoint: '${CERC_REGISTRY_GQL_ENDPOINT:-http://console.laconic.com:9473/api}'
chainId: ${CERC_REGISTRY_CHAIN_ID:-laconic_9000-1}
gas: 550000
gas: 950000
fees: 200000aphoton
EOF
@@ -64,7 +64,6 @@ laconic -c $CONFIG_FILE cns name set --user-key "${CERC_REGISTRY_USER_KEY}" --bo
laconic -c $CONFIG_FILE cns name set --user-key "${CERC_REGISTRY_USER_KEY}" --bond-id ${CERC_REGISTRY_BOND_ID} "$CERC_REGISTRY_APP_CRN@${CERC_REPO_REF}" "$RECORD_ID"
if [ "true" == "$CERC_IS_LATEST_RELEASE" ]; then
laconic -c $CONFIG_FILE cns name set --user-key "${CERC_REGISTRY_USER_KEY}" --bond-id ${CERC_REGISTRY_BOND_ID} "$CERC_REGISTRY_APP_CRN" "$RECORD_ID"
laconic -c $CONFIG_FILE cns name set --user-key "${CERC_REGISTRY_USER_KEY}" --bond-id ${CERC_REGISTRY_BOND_ID} "$CERC_REGISTRY_APP_CRN@latest" "$RECORD_ID"
fi
rm -f $RECORD_FILE $CONFIG_FILE
+5 -2
View File
@@ -14,7 +14,7 @@ services:
restEndpoint: '${CERC_REGISTRY_REST_ENDPOINT:-http://console.laconic.com:1317}'
gqlEndpoint: '${CERC_REGISTRY_GQL_ENDPOINT:-http://console.laconic.com:9473/api}'
chainId: ${CERC_REGISTRY_CHAIN_ID:-laconic_9000-1}
gas: 550000
gas: 950000
fees: 200000aphoton
EOF
@@ -38,8 +38,11 @@ record:
application: "$CERC_REGISTRY_APP_CRN@$rcd_app_version"
dns: "$CERC_REGISTRY_DEPLOYMENT_SHORT_HOSTNAME"
deployment: "$CERC_REGISTRY_DEPLOYMENT_CRN"
config:
env:
CERC_WEBAPP_DEBUG: "$rcd_app_version"
meta:
note: "Added by CI"
note: "Added by CI @ `date`"
repository: "`git remote get-url origin`"
repository_ref: "${GITHUB_SHA:-`git log -1 --format="%H"`}"
EOF