-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'FlowFuse:main' into main
- Loading branch information
Showing
27 changed files
with
660 additions
and
103 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
name: File-server - build and deploy | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
fileserver_release_name: | ||
description: 'file-server package version' | ||
required: false | ||
default: 'nightly' | ||
fileserver_ref: | ||
description: 'file-server package ref' | ||
required: false | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref_name }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
build: | ||
name: Build single-architecture container images | ||
uses: flowfuse/github-actions-workflows/.github/workflows/build_container_image.yml@7808b849474ae9bc8dfc7f6db19e66d241018c94 | ||
with: | ||
image_name: 'file-server' | ||
package_dependencies: | | ||
@flowforge/file-server | ||
build_context: 'file-server' | ||
npm_registry_url: ${{ vars.PUBLIC_NPM_REGISTRY_URL }} | ||
secrets: | ||
npm_registry_auth_token: ${{ secrets.NPM_PUBLISH_TOKEN }} | ||
temporary_registry_token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
build-multi-architecture: | ||
name: Build multi-architecture container image | ||
needs: build | ||
uses: flowfuse/github-actions-workflows/.github/workflows/merge_multiarch_images.yml@7808b849474ae9bc8dfc7f6db19e66d241018c94 | ||
with: | ||
image_name: 'file-server' | ||
secrets: | ||
temporary_registry_token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
deploy-stage: | ||
name: Deploy to staging environment | ||
needs: build-multi-architecture | ||
uses: flowfuse/github-actions-workflows/.github/workflows/deploy_container_image.yml@7808b849474ae9bc8dfc7f6db19e66d241018c94 | ||
with: | ||
environment: stage | ||
service_name: 'file-server' | ||
deployment_name: 'flowforge-file' | ||
container_name: 'file-storage' | ||
image: ${{ needs.build-multi-architecture.outputs.image }} | ||
secrets: | ||
aws_access_key_id: ${{ secrets.STAGING_AWS_ID }} | ||
aws_secret_access_key: ${{ secrets.STAGING_AWS_KEY }} | ||
temporary_registry_token: ${{ secrets.GITHUB_TOKEN }} | ||
eks_cluster_name: ${{ secrets.EKS_CLUSTER_NAME }} | ||
|
||
deploy-prod: | ||
if: github.ref_name == 'main' | ||
name: Deploy to production environment | ||
needs: [build-multi-architecture, deploy-stage] | ||
uses: flowfuse/github-actions-workflows/.github/workflows/deploy_container_image.yml@7808b849474ae9bc8dfc7f6db19e66d241018c94 | ||
with: | ||
environment: production | ||
service_name: 'file-server' | ||
deployment_name: 'flowforge-file' | ||
container_name: 'file-storage' | ||
image: ${{ needs.build-multi-architecture.outputs.image }} | ||
secrets: | ||
aws_access_key_id: ${{ secrets.PRODUCTION_AWS_ID }} | ||
aws_secret_access_key: ${{ secrets.PRODUCTION_AWS_KEY }} | ||
temporary_registry_token: ${{ secrets.GITHUB_TOKEN }} | ||
eks_cluster_name: ${{ secrets.EKS_CLUSTER_NAME }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
name: Flowforge - build and deploy | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
flowforge_release_name: | ||
description: 'flowforge package version' | ||
required: false | ||
default: 'nightly' | ||
flowforge_ref: | ||
description: 'flowforge package ref' | ||
required: false | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref_name }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
build: | ||
name: Build single-architecture container images | ||
uses: flowfuse/github-actions-workflows/.github/workflows/build_container_image.yml@7808b849474ae9bc8dfc7f6db19e66d241018c94 | ||
with: | ||
image_name: 'forge-k8s' | ||
package_dependencies: | | ||
@flowforge/flowforge | ||
@flowforge/kubernetes | ||
build_context: 'flowforge-container' | ||
npm_registry_url: ${{ vars.PUBLIC_NPM_REGISTRY_URL }} | ||
secrets: | ||
npm_registry_auth_token: ${{ secrets.NPM_PUBLISH_TOKEN }} | ||
temporary_registry_token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
build-multi-architecture: | ||
name: Build multi-architecture container image | ||
needs: build | ||
uses: flowfuse/github-actions-workflows/.github/workflows/merge_multiarch_images.yml@7808b849474ae9bc8dfc7f6db19e66d241018c94 | ||
with: | ||
image_name: 'forge-k8s' | ||
secrets: | ||
temporary_registry_token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
deploy-stage: | ||
name: Deploy to staging environment | ||
needs: build-multi-architecture | ||
uses: flowfuse/github-actions-workflows/.github/workflows/deploy_container_image.yml@7808b849474ae9bc8dfc7f6db19e66d241018c94 | ||
with: | ||
environment: stage | ||
service_name: 'forge-k8s' | ||
deployment_name: flowforge | ||
container_name: forge | ||
image: ${{ needs.build-multi-architecture.outputs.image }} | ||
secrets: | ||
aws_access_key_id: ${{ secrets.STAGING_AWS_ID }} | ||
aws_secret_access_key: ${{ secrets.STAGING_AWS_KEY }} | ||
temporary_registry_token: ${{ secrets.GITHUB_TOKEN }} | ||
eks_cluster_name: ${{ secrets.EKS_CLUSTER_NAME }} | ||
|
||
deploy-prod: | ||
if: github.ref_name == 'main' | ||
name: Deploy to production environment | ||
needs: [build-multi-architecture, deploy-stage] | ||
uses: flowfuse/github-actions-workflows/.github/workflows/deploy_container_image.yml@7808b849474ae9bc8dfc7f6db19e66d241018c94 | ||
with: | ||
environment: production | ||
service_name: 'forge-k8s' | ||
deployment_name: flowforge | ||
container_name: forge | ||
image: ${{ needs.build-multi-architecture.outputs.image }} | ||
secrets: | ||
aws_access_key_id: ${{ secrets.PRODUCTION_AWS_ID }} | ||
aws_secret_access_key: ${{ secrets.PRODUCTION_AWS_KEY }} | ||
temporary_registry_token: ${{ secrets.GITHUB_TOKEN }} | ||
eks_cluster_name: ${{ secrets.EKS_CLUSTER_NAME }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
name: Build Node-RED container | ||
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 | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref_name }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
build-stage-302: | ||
uses: flowfuse/github-actions-workflows/.github/workflows/build_container_image.yml@e3e734b910af78371b2c9a1c6856446d17421f50 | ||
with: | ||
environment: 'stage' | ||
image_name: 'node-red' | ||
dockerfile_path: Dockerfile | ||
package_dependencies: | | ||
@flowforge/nr-project-nodes | ||
build_context: 'node-red-container' | ||
npm_registry_url: ${{ vars.PUBLIC_NPM_REGISTRY_URL }} | ||
secrets: | ||
npm_registry_auth_token: ${{ secrets.NPM_PUBLISH_TOKEN }} | ||
aws_access_key_id: ${{ secrets.STAGING_AWS_ID }} | ||
aws_access_key_secret: ${{ secrets.STAGING_AWS_KEY }} | ||
build-stage-223: | ||
uses: flowfuse/github-actions-workflows/.github/workflows/build_container_image.yml@e3e734b910af78371b2c9a1c6856446d17421f50 | ||
with: | ||
environment: 'stage' | ||
image_name: 'node-red' | ||
image_tag_prefix: '2.2.3-' | ||
dockerfile_path: Dockerfile-2.2.x | ||
package_dependencies: | | ||
@flowforge/nr-project-nodes | ||
build_context: 'node-red-container' | ||
npm_registry_url: ${{ vars.PUBLIC_NPM_REGISTRY_URL }} | ||
secrets: | ||
npm_registry_auth_token: ${{ secrets.NPM_PUBLISH_TOKEN }} | ||
aws_access_key_id: ${{ secrets.STAGING_AWS_ID }} | ||
aws_access_key_secret: ${{ secrets.STAGING_AWS_KEY }} | ||
build-stage-310: | ||
uses: flowfuse/github-actions-workflows/.github/workflows/build_container_image.yml@e3e734b910af78371b2c9a1c6856446d17421f50 | ||
with: | ||
environment: 'stage' | ||
image_name: 'node-red' | ||
image_tag_prefix: '3.1.0-' | ||
dockerfile_path: Dockerfile-3.1 | ||
package_dependencies: | | ||
@flowforge/nr-project-nodes | ||
build_context: 'node-red-container' | ||
npm_registry_url: ${{ vars.PUBLIC_NPM_REGISTRY_URL }} | ||
secrets: | ||
npm_registry_auth_token: ${{ secrets.NPM_PUBLISH_TOKEN }} | ||
aws_access_key_id: ${{ secrets.STAGING_AWS_ID }} | ||
aws_access_key_secret: ${{ secrets.STAGING_AWS_KEY }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.