Skip to content

Commit ef53286

Browse files
committed
add docker image CI workflow
1 parent a84eabb commit ef53286

File tree

2 files changed

+44
-0
lines changed

2 files changed

+44
-0
lines changed

.github/workflows/docker-image.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Docker Image CI
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
node_version:
7+
description: 'Node.js version to build this image with.'
8+
type: choice
9+
required: true
10+
default: '20'
11+
options:
12+
- '20'
13+
tag_version:
14+
description: 'Tag version of the image to be pushed.'
15+
type: string
16+
required: true
17+
default: 'latest'
18+
19+
jobs:
20+
docker:
21+
runs-on: ubuntu-latest
22+
steps:
23+
- name: Checkout
24+
uses: actions/[email protected]
25+
- name: Set up QEMU
26+
uses: docker/[email protected]
27+
- name: Set up Docker Buildx
28+
uses: docker/[email protected]
29+
- name: Login to Docker Hub
30+
uses: docker/login-action@v3
31+
with:
32+
username: ${{ secrets.DOCKERHUB_USERNAME }}
33+
password: ${{ secrets.DOCKERHUB_TOKEN }}
34+
- name: Build and push
35+
uses: docker/[email protected]
36+
with:
37+
context: .
38+
file: ./docker/Dockerfile
39+
build-args: |
40+
NODE_VERSION=${{github.event.inputs.node_version}}
41+
platforms: linux/amd64,linux/arm64
42+
push: true
43+
tags: flowiseai/flowise:${{github.event.inputs.tag_version}}

docker/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ USER root
44

55
RUN apk add --no-cache git
66
RUN apk add --no-cache python3 py3-pip make g++
7+
RUN apk add --no-cache cmake
78
# needed for pdfjs-dist
89
RUN apk add --no-cache build-base cairo-dev pango-dev
910

0 commit comments

Comments
 (0)