Skip to content

Commit

Permalink
Add build and upload workflows for Node-RED 4.0.x container images
Browse files Browse the repository at this point in the history
  • Loading branch information
ppawlowski committed Mar 15, 2024
1 parent 0684e2e commit 3b02f56
Showing 1 changed file with 61 additions and 0 deletions.
61 changes: 61 additions & 0 deletions .github/workflows/nodered-container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -209,3 +209,64 @@ jobs:
aws_secret_access_key: ${{ secrets.AWS_ACCESS_KEY_SECRET }}
temporary_registry_token: ${{ secrets.GITHUB_TOKEN }}
eks_cluster_name: ${{ secrets.EKS_CLUSTER_NAME }}

build-40:
name: Build 4.0.x container images
uses: flowfuse/github-actions-workflows/.github/workflows/[email protected]
with:
image_name: 'node-red'
dockerfile_path: Dockerfile-4.0
image_tag_prefix: '4.0.x-'
package_dependencies: |
@flowforge/nr-project-nodes
build_context: 'node-red-container'
npm_registry_url: ${{ vars.PUBLIC_NPM_REGISTRY_URL }}
scan_image: true
secrets:
npm_registry_auth_token: ${{ secrets.NPM_PUBLISH_TOKEN }}
temporary_registry_token: ${{ secrets.GITHUB_TOKEN }}
build-40-multi-architecture:
name: Build multi-architecture container image
needs: build-40
uses: flowfuse/github-actions-workflows/.github/workflows/[email protected]
with:
image_name: 'node-red'
image_tag_prefix: '4.0.x-'
secrets:
temporary_registry_token: ${{ secrets.GITHUB_TOKEN }}
upload-40-stage:
name: Upload image to staging ECR
if: github.ref_name == 'main'
needs: build-40-multi-architecture
uses: flowfuse/github-actions-workflows/.github/workflows/[email protected]
with:
environment: stage
service_name: 'node-red'
deployment_name: 'node-red'
container_name: 'node-red'
deploy: false
image: ${{ needs.build-40-multi-architecture.outputs.image }}
image_tag_prefix: '4.0.x-'
secrets:
aws_access_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws_secret_access_key: ${{ secrets.AWS_ACCESS_KEY_SECRET }}
temporary_registry_token: ${{ secrets.GITHUB_TOKEN }}
eks_cluster_name: ${{ secrets.EKS_CLUSTER_NAME }}
upload-40-prod:
name: Upload image to production ECR
if: github.ref_name == 'main'
needs: build-40-multi-architecture
uses: flowfuse/github-actions-workflows/.github/workflows/[email protected]
with:
environment: production
service_name: 'node-red'
deployment_name: 'node-red'
container_name: 'node-red'
deploy: false
image: ${{ needs.build-40-multi-architecture.outputs.image }}
image_tag_prefix: '4.0.x-'
secrets:
aws_access_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws_secret_access_key: ${{ secrets.AWS_ACCESS_KEY_SECRET }}
temporary_registry_token: ${{ secrets.GITHUB_TOKEN }}
eks_cluster_name: ${{ secrets.EKS_CLUSTER_NAME }}

0 comments on commit 3b02f56

Please sign in to comment.