Compare commits

...

5 Commits
main ... main

2 changed files with 98 additions and 50 deletions

View File

@ -1,28 +1,76 @@
name: Publish ApplicationRecord to Registry name: Publish ApplicationRecord to Registry
on: on:
release: release:
types: [published] types: [published]
jobs:
cns_publish: env:
runs-on: ubuntu-latest DOCKER_HOST: unix:///var/run/dind.sock
steps:
- name: "Clone project repository" jobs:
uses: actions/checkout@v3 setup_deps:
- name: Use Node.js name: "Install project and dependencies"
uses: actions/setup-node@v3 runs-on: ubuntu-latest
with: steps:
node-version: 18 - name: "Clone project repository"
- name: "Install Yarn" uses: actions/checkout@v3
run: npm install -g yarn
- name: "Install registry CLI" # At present the stock setup-python action fails on Linux/aarch64
run: | # Conditional steps below workaroud this by using deadsnakes for that case only
npm config set @cerc-io:registry https://git.vdb.to/api/packages/cerc-io/npm/ - name: "Install Python for ARM on Linux"
yarn global add @cerc-io/laconic-registry-cli if: ${{ runner.arch == 'arm64' && runner.os == 'Linux' }}
- name: "Install jq" uses: deadsnakes/action@v3.0.1
run: apt -y update && apt -y install jq with:
- name: "Publish Record" python-version: '3.8'
env:
CERC_REGISTRY_USER_KEY: ${{ secrets.CICD_LACONIC_USER_KEY }} - name: "Install Python cases other than ARM on Linux"
CERC_REGISTRY_BOND_ID: ${{ secrets.CICD_LACONIC_BOND_ID }} if: ${{ ! (runner.arch == 'arm64' && runner.os == 'Linux') }}
CERC_REGISTRY_APP_CRN: "crn://cerc-io/applications/test-progressive-web-app" uses: actions/setup-python@v4
run: scripts/publish-app-record.sh with:
python-version: '3.8'
- name: "Print Python version"
run: python3 --version
- name: "Install Stack Orchestrator"
run: |
mkdir -p /opt/laconic
curl -o /opt/laconic/quick-install-linux.sh https://raw.githubusercontent.com/cerc-io/stack-orchestrator/main/scripts/quick-install-linux.sh
chmod +x /opt/laconic/quick-install-linux.sh
CERC_SO_INSTALL_SKIP_PACKAGES=true /opt/laconic/quick-install-linux.sh -y
source ~/.profile
laconic-so version
- name: "Start dockerd" # Also needed until we can incorporate into the executor
run: |
dockerd -H $DOCKER_HOST --userland-proxy=false &
sleep 5
- name: "Use laconic-so"
run: |
source ~/.profile
laconic-so --stack uniswap-urbit-app setup-repositories --pull
laconic-so --stack uniswap-urbit-app build-containers
# laconic-so --stack uniswap-urbit-app deploy init --output uniswap-urbit-app-spec.yml
# edit the above .yml file
# laconic-so --stack uniswap-urbit-app deploy create --spec-file uniswap-urbit-app-spec.yml --deployment-dir uniswap-urbit-app-deployment
# edit the config file
# laconic-so deployment --dir uniswap-urbit-app-deployment start
- 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 Record"
env:
CERC_REGISTRY_USER_KEY: ${{ secrets.CICD_LACONIC_USER_KEY }}
CERC_REGISTRY_BOND_ID: ${{ secrets.CICD_LACONIC_BOND_ID }}
CERC_REGISTRY_APP_CRN: "crn://urbit/applications/uniswap"
run: scripts/publish-app-record.sh

View File

@ -1,22 +1,22 @@
{ {
"private": true, "private": true,
"name": "@cerc-io/test-progressive-web-app", "name": "@zramsay/test-progressive-web-app",
"version": "0.1.1", "version": "0.1.6",
"repository": "https://git.vdb.to/cerc-io/test-progressive-web-app", "repository": "https://git.vdb.to/zramsay/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"
} }
} }