Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2d15816d60 | ||
|
|
46b23b7e96 | ||
|
|
35b2bc10dd | ||
|
|
8d1002f167 | ||
|
|
37d1a41415 | ||
|
|
3d7d613c78 |
@@ -1,31 +1,31 @@
|
|||||||
name: Publish ApplicationRecord to Registry
|
name: Publish ApplicationRecord to Registry
|
||||||
on:
|
on:
|
||||||
release:
|
release:
|
||||||
types: [published]
|
types: [published]
|
||||||
|
|
||||||
env:
|
env:
|
||||||
CERC_REGISTRY_USER_KEY: ${{ secrets.CICD_LACONIC_USER_KEY }}
|
CERC_REGISTRY_USER_KEY: ${{ secrets.CICD_LACONIC_USER_KEY }}
|
||||||
CERC_REGISTRY_BOND_ID: ${{ secrets.CICD_LACONIC_BOND_ID }}
|
CERC_REGISTRY_BOND_ID: ${{ secrets.CICD_LACONIC_BOND_ID }}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
cns_publish:
|
cns_publish:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: "Clone project repository"
|
- name: "Clone project repository"
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
- name: Use Node.js
|
- name: Use Node.js
|
||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: 18
|
node-version: 18
|
||||||
- name: "Install Yarn"
|
- name: "Install Yarn"
|
||||||
run: npm install -g yarn
|
run: npm install -g yarn
|
||||||
- name: "Install registry CLI"
|
- name: "Install registry CLI"
|
||||||
run: |
|
run: |
|
||||||
npm config set @cerc-io:registry https://git.vdb.to/api/packages/cerc-io/npm/
|
npm config set @cerc-io:registry https://git.vdb.to/api/packages/cerc-io/npm/
|
||||||
yarn global add @cerc-io/laconic-registry-cli
|
yarn global add @cerc-io/laconic-registry-cli
|
||||||
- name: "Install jq"
|
- name: "Install jq"
|
||||||
run: apt -y update && apt -y install jq
|
run: apt -y update && apt -y install jq
|
||||||
- name: "Publish Application Record"
|
- name: "Publish Application Record"
|
||||||
run: scripts/publish-app-record.sh
|
run: scripts/publish-app-record.sh
|
||||||
- name: "Request Deployment"
|
- name: "Request Deployment"
|
||||||
run: scripts/request-app-deployment.sh
|
run: scripts/request-app-deployment.sh
|
||||||
|
|||||||
+22
-22
@@ -1,22 +1,22 @@
|
|||||||
{
|
{
|
||||||
"private": true,
|
"private": true,
|
||||||
"name": "@cerc-io/test-progressive-web-app",
|
"name": "@cerc-io/test-progressive-web-app",
|
||||||
"version": "0.1.4",
|
"version": "0.1.8",
|
||||||
"repository": "https://git.vdb.to/cerc-io/test-progressive-web-app",
|
"repository": "https://git.vdb.to/cerc-io/test-progressive-web-app",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "next dev",
|
"dev": "next dev",
|
||||||
"build": "next build",
|
"build": "next build",
|
||||||
"start": "next start"
|
"start": "next start"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"next": "latest",
|
"next": "latest",
|
||||||
"next-pwa": "^5.6.0",
|
"next-pwa": "^5.6.0",
|
||||||
"react": "^18.2.0",
|
"react": "^18.2.0",
|
||||||
"react-dom": "^18.2.0"
|
"react-dom": "^18.2.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/node": "17.0.4",
|
"@types/node": "17.0.4",
|
||||||
"@types/react": "17.0.38",
|
"@types/react": "17.0.38",
|
||||||
"typescript": "4.5.4"
|
"typescript": "4.5.4"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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"
|
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
|
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" "$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
|
fi
|
||||||
|
|
||||||
rm -f $RECORD_FILE $CONFIG_FILE
|
rm -f $RECORD_FILE $CONFIG_FILE
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ record:
|
|||||||
dns: "$CERC_REGISTRY_DEPLOYMENT_SHORT_HOSTNAME"
|
dns: "$CERC_REGISTRY_DEPLOYMENT_SHORT_HOSTNAME"
|
||||||
deployment: "$CERC_REGISTRY_DEPLOYMENT_CRN"
|
deployment: "$CERC_REGISTRY_DEPLOYMENT_CRN"
|
||||||
meta:
|
meta:
|
||||||
note: "Added by CI"
|
note: "Added by CI @ `date`"
|
||||||
repository: "`git remote get-url origin`"
|
repository: "`git remote get-url origin`"
|
||||||
repository_ref: "${GITHUB_SHA:-`git log -1 --format="%H"`}"
|
repository_ref: "${GITHUB_SHA:-`git log -1 --format="%H"`}"
|
||||||
EOF
|
EOF
|
||||||
|
|||||||
Reference in New Issue
Block a user