diff --git a/.gitea/workflows/deploy-namada.yml b/.gitea/workflows/deploy-namada.yml index 6a77bca..35ab9f9 100644 --- a/.gitea/workflows/deploy-namada.yml +++ b/.gitea/workflows/deploy-namada.yml @@ -9,6 +9,14 @@ on: env: TARGET_REPO: zramsay/namada-interface + CERC_REGISTRY_USER_KEY: ${{ secrets.CICD_LACONIC_USER_KEY }} + CERC_REGISTRY_BOND_ID: ${{ secrets.CICD_LACONIC_BOND_ID }} + CERC_REGISTRY_RPC_ENDPOINT: "https://laconicd-sapo.laconic.com" + CERC_REGISTRY_GQL_ENDPOINT: "https://laconicd-sapo.laconic.com/api" + CERC_REGISTRY_CHAIN_ID: "laconic-testnet-2" + CERC_REGISTRY_DEPLOYMENT_HOSTNAME: namadillo + DEPLOYER_LRN: "lrn://vaasl-provider/deployers/webapp-deployer-api.apps.vaasl.io" + jobs: check-latest: @@ -40,6 +48,22 @@ jobs: if: needs.check-latest.outputs.run_workflow == 'true' runs-on: ubuntu-latest steps: - - name: deploy + - name: echo TAG run: | - echo "New release detected: ${{ needs.check-latest.outputs.latest_tag }}" \ No newline at end of file + echo "New release detected: ${{ needs.check-latest.outputs.latest_tag }}" + - name: "Clone project repository" + uses: actions/checkout@v3 + - name: Use Node.js + uses: actions/setup-node@v3 + with: + node-version: 18 + - name: "Enable Yarn" + run: corepack enable + - name: "Install registry CLI" + run: | + npm config set @cerc-io:registry https://git.vdb.to/api/packages/cerc-io/npm/ + npm install -g @cerc-io/laconic-registry-cli + - name: "Install jq" + run: sudo apt -y update && sudo apt -y install jq + - name: "Deploy Namada" + run: deploy.sh $TARGET_REPO ${{ needs.check-latest.outputs.latest_tag }}