Skip to content

User defined health check interval #291

User defined health check interval

User defined health check interval #291

Workflow file for this run

name: Build and push packages
on:
workflow_dispatch:
inputs:
nr_project_nodes_release_name:
description: 'nr-project-nodes package version'
required: false
default: 'nightly'
nr_project_nodes_ref:
description: 'nr-project-nodes package ref'
required: false
nr_file_nodes_release_name:
description: 'nr-file-nodes package version'
required: false
default: 'nightly'
nr_file_nodes_ref:
description: 'nr-file-nodes package ref'
required: false
pull_request:
branches:
- main
push:
branches:
- main
jobs:
build:
uses: 'flowfuse/github-actions-workflows/.github/workflows/build_node_package.yml@v0.1.0'
with:
run_tests: true
nrLauncherPackage:
needs: build
if: |
( github.event_name == 'push' && github.ref == 'refs/heads/main' ) ||
( github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/main' )
uses: 'flowfuse/github-actions-workflows/.github/workflows/publish_node_package.yml@v0.1.0'
with:
package_name: flowfuse-nr-launcher
publish_package: true
package_dependencies: |
@flowfuse/nr-project-nodes
@flowfuse/nr-file-nodes
secrets:
npm_registry_token: ${{ secrets.NPM_PUBLISH_TOKEN }}
nrThemePackage:
needs: build
if: |
( github.event_name == 'push' && github.ref == 'refs/heads/main' ) ||
( github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/main' )
uses: 'flowfuse/github-actions-workflows/.github/workflows/publish_node_package.yml@v0.1.0'
with:
package_name: flowfuse-nr-theme
publish_package: true
working_directory: ./lib/theme
disable_ignore_scripts_on_publish: true
secrets:
npm_registry_token: ${{ secrets.NPM_PUBLISH_TOKEN }}
dispatch-nr-container:
name: Dispatch node-red container build
needs: [nrLauncherPackage, nrThemePackage]
runs-on: ubuntu-latest
steps:
- name: Generate a token
id: generate_token
uses: tibdex/github-app-token@v1
with:
app_id: ${{ secrets.GH_BOT_APP_ID }}
private_key: ${{ secrets.GH_BOT_APP_KEY }}
- name: Trigger node-red container build
uses: benc-uk/workflow-dispatch@v1
with:
workflow: nodered-container.yml
repo: flowfuse/helm
ref: main
token: ${{ steps.generate_token.outputs.token }}
dispatch:
name: Dispatch localfs package build pipeline
runs-on: ubuntu-latest
needs: [nrLauncherPackage, nrThemePackage]
steps:
- name: Generate a token
id: generate_token
uses: tibdex/github-app-token@v1
with:
app_id: ${{ secrets.GH_BOT_APP_ID }}
private_key: ${{ secrets.GH_BOT_APP_KEY }}
- name: Trigger localfs package build
uses: benc-uk/workflow-dispatch@v1
with:
workflow: publish.yml
repo: flowfuse/driver-localfs
ref: main
token: ${{ steps.generate_token.outputs.token }}
inputs: '{"nr_launcher_ref": "${{ github.ref }}", "nr_launcher_release_name": "${{ needs.nrLauncherPackage.outputs.release_name }}"}'