Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 25 additions & 26 deletions .github/workflows/docker-images.yml
Original file line number Diff line number Diff line change
@@ -1,38 +1,38 @@
name: Build lowcoder docker images
name: Build OpenFlower docker images

on:
workflow_dispatch:
inputs:
imageTag:
type: choice
description: 'Choose a tag for built docker image(s)'
description: "Choose a tag for built docker image(s)"
required: true
default: 'latest'
default: "latest"
options:
- latest
- test
- latest
- test
build_allinone:
type: boolean
description: 'Build the All-In-One image'
description: "Build the All-In-One image"
default: true
build_frontend:
type: boolean
description: 'Build the Frontend image'
description: "Build the Frontend image"
default: true
build_nodeservice:
type: boolean
description: 'Build the Node service image'
description: "Build the Node service image"
default: true
build_apiservice:
type: boolean
description: 'Build the API service image'
description: "Build the API service image"
default: true
push:
branches: dev
paths:
- 'client/**'
- 'server/**'
- 'deploy/docker/**'
- "client/**"
- "server/**"
- "deploy/docker/**"
release:
types: [released]

Expand All @@ -45,13 +45,13 @@ jobs:
run: |
# Get the short SHA of last commit
echo "SHORT_SHA=$(echo ${{ github.sha }} | cut -c1-7)" >> "${GITHUB_ENV}"

# Get branch name - we don't use github.ref_head_name since we don't build on PRs
echo "BRANCH_NAME=${{ github.ref_name }}" >> "${GITHUB_ENV}"

# Set docker image tag
echo "IMAGE_TAG=${{ inputs.imageTag || github.ref_name }}" >> "${GITHUB_ENV}"

# Control which images to build
echo "BUILD_ALLINONE=${{ inputs.build_allinone || true }}" >> "${GITHUB_ENV}"
echo "BUILD_FRONTEND=${{ inputs.build_frontend || true }}" >> "${GITHUB_ENV}"
Expand All @@ -69,12 +69,12 @@ jobs:
username: ${{ secrets.DOCKER_LOGIN }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Setup Docker Buildx with cloud driver
uses: docker/setup-buildx-action@v3
with:
version: "lab:latest"
driver: cloud
endpoint: "lowcoderorg/lowcoder-cloud-builder"
# - name: Setup Docker Buildx with cloud driver
# uses: docker/setup-buildx-action@v3
# with:
# version: "lab:latest"
# driver: cloud
# endpoint: "flowerappengorg/lowcoder-cloud-builder"

- name: Build and push the all-in-one image
if: ${{ env.BUILD_ALLINONE == 'true' }}
Expand All @@ -90,7 +90,7 @@ jobs:
linux/amd64
linux/arm64
push: true
tags: lowcoderorg/lowcoder-ce:${{ env.IMAGE_TAG }}
tags: flowerappengorg/openflower:${{ env.IMAGE_TAG }}

- name: Build and push the frontend image
if: ${{ env.BUILD_FRONTEND == 'true' }}
Expand All @@ -107,7 +107,7 @@ jobs:
linux/amd64
linux/arm64
push: true
tags: lowcoderorg/lowcoder-ce-frontend:${{ env.IMAGE_TAG }}
tags: flowerappengorg/openflower-frontend:${{ env.IMAGE_TAG }}

- name: Build and push the node service image
if: ${{ env.BUILD_NODESERVICE == 'true' }}
Expand All @@ -119,7 +119,7 @@ jobs:
linux/amd64
linux/arm64
push: true
tags: lowcoderorg/lowcoder-ce-node-service:${{ env.IMAGE_TAG }}
tags: flowerappengorg/openflower-node-service:${{ env.IMAGE_TAG }}

- name: Build and push the API service image
if: ${{ env.BUILD_APISERVICE == 'true' }}
Expand All @@ -131,5 +131,4 @@ jobs:
linux/amd64
linux/arm64
push: true
tags: lowcoderorg/lowcoder-ce-api-service:${{ env.IMAGE_TAG }}

tags: flowerappengorg/openflower-api-service:${{ env.IMAGE_TAG }}
Loading