my-test-pwa-001/.gitea/workflows/publish.yaml

32 lines
1.0 KiB
YAML
Raw Normal View History

2023-12-14 16:22:36 +00:00
name: Publish ApplicationRecord to Registry
on:
release:
types: [published]
2023-12-14 16:50:37 +00:00
2023-12-14 16:39:05 +00:00
env:
CERC_REGISTRY_USER_KEY: ${{ secrets.CICD_CERCIO_USER_KEY }}
CERC_REGISTRY_BOND_ID: ${{ secrets.CICD_CERCIO_BOND_ID }}
2023-12-14 16:50:37 +00:00
CERC_REGISTRY_APP_CRN: ${{ vars.CERC_REGISTRY_APP_CRN }}
2023-12-14 16:22:36 +00:00
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"
2023-12-14 16:39:05 +00:00
run: scripts/request-app-deployment.sh