Compare commits

...

3 Commits
0.1.3 ... main

Author SHA1 Message Date
6909db61f6 dont run jobs in parallel 2023-12-13 16:53:10 +00:00
35998ad7fc Update .gitea/workflows/publish.yaml 2023-12-13 16:50:13 +00:00
18b2ee5aed Update package.json 2023-12-13 15:19:58 +00:00
2 changed files with 72 additions and 24 deletions

View File

@ -2,12 +2,60 @@ name: Publish ApplicationRecord to Registry
on: on:
release: release:
types: [published] types: [published]
env:
DOCKER_HOST: unix:///var/run/dind.sock
jobs: jobs:
cns_publish: setup_deps:
name: "Install project and dependencies"
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
# At present the stock setup-python action fails on Linux/aarch64
# Conditional steps below workaroud this by using deadsnakes for that case only
- name: "Install Python for ARM on Linux"
if: ${{ runner.arch == 'arm64' && runner.os == 'Linux' }}
uses: deadsnakes/action@v3.0.1
with:
python-version: '3.8'
- name: "Install Python cases other than ARM on Linux"
if: ${{ ! (runner.arch == 'arm64' && runner.os == 'Linux') }}
uses: actions/setup-python@v4
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 - name: Use Node.js
uses: actions/setup-node@v3 uses: actions/setup-node@v3
with: with:
@ -24,5 +72,5 @@ jobs:
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 }}
CERC_REGISTRY_APP_CRN: "crn://osmosis/applications/test-progressive-web-app" CERC_REGISTRY_APP_CRN: "crn://urbit/applications/uniswap"
run: scripts/publish-app-record.sh 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"
} }
} }