004 - GitHub Actions and SDKs

Feb 5th, 2024

GitHub Actions

We now offer GitHub Actions that enable you to automatically update your applications.

  • actions-build - build components automatically using GitHub Actions.
  • actions-release - release components automatically using GitHub Actions.

You can add these actions to your CI/CD workflows to automatically update your Nuon apps with each code change.

To automatically build a component using actions:

---
on:
  push:
    branches:
      - main
jobs:
  build:
    runs-on: ubuntu-latest
    name: Build
    steps:
      - name: Checkout code
        id: checkout
        uses: actions/checkout@v2

      - name: Build component
        id: build
        uses: nuonco/actions-build@v1
        with:
          api_token: ${{ secrets.nuon_api_token }}
          org: ${{ vars.nuon_org_id }}
          component_id: backend

To automatically build and release a component using actions:

---
on:
  push:
    branches:
      - main
  build:
    runs-on: ubuntu-latest
    name: Build
    steps:
      - name: Checkout code
        id: checkout
        uses: actions/checkout@v2

      - name: Build component
        id: build
        uses: nuonco/actions-build@v1
        with:
          api_token: ${{ secrets.nuon_api_token }}
          org: ${{ vars.nuon_org_id }}
          component_id: backend

      - name: Release
        id: release
        uses: nuonco/actions-release@v1
        with:
          api_token: ${{ secrets.nuon_api_token }}
          org: ${{ vars.nuon_org_id
          build_id: ${{ steps.build.outputs.build_id }}

Learn more about GitHub actions in our docs.

Supported SDKs

We now support several SDKs for working with the Nuon platform, which enable you to build Nuon directly into your product. By integrating Nuon into your product, you can unlock self-serve and other capabilities for your customers such as:

  • customer managed installs and updates
  • ability to self-serve agents
  • shared responsibility deployments

While you can get started by using a turnkey installer or Terraform to manage installs, our hunch is that most products will integrate Nuon into their BYOC offering more officially long term.

We now support 3 official SDKs:

We build both our cli and Terraform provider using the official nuon-go sdk.

You can learn more about our SDKs here.

Docs

We launched guides on our docs site, and have a whole lot more planned here. Today, you can use the guides section to answer questions about the platform.

Please share feedback on how we can improve our docs, or let us know if anything is missing.