Skip to content

Commit 57107ab

Browse files
committed
3.0.2
1 parent 6058d08 commit 57107ab

File tree

925 files changed

+126988
-9758
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

925 files changed

+126988
-9758
lines changed

.github/workflows/autoSyncMergedPullRequest.yml

Lines changed: 0 additions & 33 deletions
This file was deleted.

.github/workflows/autoSyncSingleCommit.yml

Lines changed: 0 additions & 36 deletions
This file was deleted.

.github/workflows/docker-image.yml

Lines changed: 32 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,22 @@ name: Docker Image CI
33
on:
44
workflow_dispatch:
55
inputs:
6+
registry:
7+
description: 'Container Registry to push the image to.'
8+
type: choice
9+
required: true
10+
default: 'aws_ecr'
11+
options:
12+
- 'docker_hub'
13+
- 'aws_ecr'
14+
environment:
15+
description: 'Environment to push the image to.'
16+
required: true
17+
default: 'dev'
18+
type: choice
19+
options:
20+
- dev
21+
- prod
622
node_version:
723
description: 'Node.js version to build this image with.'
824
type: choice
@@ -19,7 +35,15 @@ on:
1935
jobs:
2036
docker:
2137
runs-on: ubuntu-latest
38+
environment: ${{ github.event.inputs.environment }}
2239
steps:
40+
- name: Set default values
41+
id: defaults
42+
run: |
43+
echo "registry=${{ github.event.inputs.registry || 'aws_ecr' }}" >> $GITHUB_OUTPUT
44+
echo "node_version=${{ github.event.inputs.node_version || '20' }}" >> $GITHUB_OUTPUT
45+
echo "tag_version=${{ github.event.inputs.tag_version || 'latest' }}" >> $GITHUB_OUTPUT
46+
2347
- name: Checkout
2448
uses: actions/[email protected]
2549

@@ -30,43 +54,38 @@ jobs:
3054
uses: docker/[email protected]
3155

3256
# ------------------------
33-
# 1) Login to Docker Hub
57+
# Login Steps (conditional)
3458
# ------------------------
3559
- name: Login to Docker Hub
60+
if: steps.defaults.outputs.registry == 'docker_hub'
3661
uses: docker/login-action@v3
3762
with:
3863
username: ${{ secrets.DOCKERHUB_USERNAME }}
3964
password: ${{ secrets.DOCKERHUB_TOKEN }}
4065

41-
# ---------------------------------------------
42-
# 2) Configure AWS Credentials for ECR Access
43-
# ---------------------------------------------
4466
- name: Configure AWS Credentials
67+
if: steps.defaults.outputs.registry == 'aws_ecr'
4568
uses: aws-actions/configure-aws-credentials@v3
4669
with:
4770
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
4871
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
4972
aws-region: ${{ secrets.AWS_REGION }}
5073

51-
# ----------------------------------
52-
# 3) Login to Amazon ECR
53-
# ----------------------------------
5474
- name: Login to Amazon ECR
75+
if: steps.defaults.outputs.registry == 'aws_ecr'
5576
uses: aws-actions/amazon-ecr-login@v1
5677

5778
# -------------------------
58-
# 4) Build and push images
79+
# Build and push (conditional tags)
5980
# -------------------------
6081
- name: Build and push
6182
uses: docker/[email protected]
6283
with:
6384
context: .
64-
file: ./docker/Dockerfile
85+
file: ${{ steps.defaults.outputs.registry == 'docker_hub' && './docker/Dockerfile' || 'Dockerfile' }}
6586
build-args: |
66-
NODE_VERSION=${{ github.event.inputs.node_version }}
87+
NODE_VERSION=${{ steps.defaults.outputs.node_version }}
6788
platforms: linux/amd64,linux/arm64
6889
push: true
69-
# Two tags: one for Docker Hub, one for ECR
7090
tags: |
71-
flowiseai/flowise-bullmq:${{ github.event.inputs.tag_version }}
72-
${{ secrets.AWS_ACCOUNT_ID }}.dkr.ecr.${{ secrets.AWS_REGION }}.amazonaws.com/flowise-bullmq:${{ github.event.inputs.tag_version }}
91+
${{ steps.defaults.outputs.registry == 'docker_hub' && format('flowiseai/flowise-bullmq:{0}', steps.defaults.outputs.tag_version) || format('{0}.dkr.ecr.{1}.amazonaws.com/flowise-bullmq:{2}', secrets.AWS_ACCOUNT_ID, secrets.AWS_REGION, steps.defaults.outputs.tag_version) }}

.github/workflows/main.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66
pull_request:
77
branches:
88
- '*'
9+
workflow_dispatch:
910
permissions:
1011
contents: read
1112
jobs:
@@ -26,14 +27,16 @@ jobs:
2627
uses: actions/setup-node@v4
2728
with:
2829
node-version: ${{ matrix.node-version }}
29-
check-latest: false
3030
cache: 'pnpm'
31-
- run: npm i -g pnpm
31+
cache-dependency-path: 'pnpm-lock.yaml'
3232
- run: pnpm install
33-
- run: ./node_modules/.bin/cypress install
3433
- run: pnpm lint
3534
- run: pnpm build
36-
- name: Install dependencies
35+
env:
36+
NODE_OPTIONS: '--max_old_space_size=4096'
37+
- name: Cypress install
38+
run: pnpm cypress install
39+
- name: Install dependencies (Cypress Action)
3740
uses: cypress-io/github-action@v6
3841
with:
3942
working-directory: ./

.github/workflows/test_docker_build.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,12 @@ on:
88
pull_request:
99
branches:
1010
- '*'
11-
11+
workflow_dispatch:
1212
jobs:
1313
build:
1414
runs-on: ubuntu-latest
1515
env:
1616
PUPPETEER_SKIP_DOWNLOAD: true
1717
steps:
18-
- uses: actions/checkout@v3
19-
20-
- run: docker build --no-cache -t flowise-bullmq .
18+
- uses: actions/checkout@v4
19+
- run: docker build --no-cache -t flowise .

0 commit comments

Comments
 (0)