File tree 1 file changed +43
-0
lines changed
1 file changed +43
-0
lines changed Original file line number Diff line number Diff line change
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/checkout@v4.1.1
25
+ - name : Set up QEMU
26
+ uses : docker/setup-qemu-action@v3.0.0
27
+ - name : Set up Docker Buildx
28
+ uses : docker/setup-buildx-action@v3.0.0
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/build-push-action@v5.3.0
36
+ with :
37
+ context : .
38
+ file : ./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}}
You can’t perform that action at this time.
0 commit comments