Skip to content

Commit

Permalink
fixed ui build error and update ui build workflow (#63)
Browse files Browse the repository at this point in the history
Co-authored-by: 乔风鳞 <[email protected]>
  • Loading branch information
qiaofenlin and 乔风鳞 authored May 17, 2024
1 parent 834483a commit 944c5eb
Show file tree
Hide file tree
Showing 4 changed files with 61 additions and 12 deletions.
60 changes: 60 additions & 0 deletions .github/workflows/release-ui.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: Release Rill Flow UI

on:
push:
branches:
- main
paths-ignore:
- '*.md'
- 'docs/**'
- 'executors/**'
workflow_dispatch:
inputs:
releaseVersion:
description: "Define the release version"
required: true
default: ""
developmentVersion:
description: "Define the snapshot version"
required: true
default: ""
jobs:
deploy:
runs-on: ubuntu-latest

steps:
# 拉取源码
- uses: actions/checkout@v3
with:
token: ${{secrets.RELEASE_TOKEN}}
- name: Configure Git User
run: |
git config user.email "[email protected]"
git config user.name "GitHub Actions"
- name: Verify Whether a Release is Ready
id: release
shell: bash
run: |
if [ "${{ github.event.inputs.releaseVersion }}" != "" ] && [ "${{ github.event.inputs.developmentVersion }}" != "" ]; then
echo "auto_release=true" >> $GITHUB_ENV
else
echo "auto_release=false" >> $GITHUB_ENV
fi
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push for UI to DockerHub
uses: docker/build-push-action@v5
with:
push: true
context: .
file: ./rill-flow-ui/Dockerfile
platforms: linux/amd64,linux/arm64
tags: ${{ github.event.inputs.releaseVersion != '' && format('weibocom/rill-flow-ui:latest,weibocom/rill-flow-ui:{0}',github.event.inputs.releaseVersion) || 'weibocom/rill-flow-ui:latest' }}

10 changes: 1 addition & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,4 @@ jobs:
context: .
file: ./docker/Dockerfile
platforms: linux/amd64,linux/arm64
tags: ${{ github.event.inputs.releaseVersion != '' && format('weibocom/rill-flow:latest,weibocom/rill-flow:{0}',github.event.inputs.releaseVersion) || 'weibocom/rill-flow:latest' }}
- name: Build and push for UI to DockerHub
uses: docker/build-push-action@v5
with:
push: true
context: .
file: ./rill-flow-ui/Dockerfile
platforms: linux/amd64,linux/arm64
tags: ${{ github.event.inputs.releaseVersion != '' && format('weibocom/rill-flow-ui:latest,weibocom/rill-flow-ui:{0}',github.event.inputs.releaseVersion) || 'weibocom/rill-flow-ui:latest' }}
tags: ${{ github.event.inputs.releaseVersion != '' && format('weibocom/rill-flow:latest,weibocom/rill-flow:{0}',github.event.inputs.releaseVersion) || 'weibocom/rill-flow:latest' }}
1 change: 0 additions & 1 deletion flow-graph/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ FROM node:18.12.1-alpine as build-stage
WORKDIR /data/flow-graph
COPY . ./

RUN npm config set registry https://registry.npm.taobao.org
RUN npm cache clean --force
RUN npm config set strict-ssl false

Expand Down
2 changes: 0 additions & 2 deletions rill-flow-ui/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ FROM node:18.12.1-alpine as build-stage
WORKDIR /data/rill-flow-ui
COPY ./rill-flow-ui/ ./

RUN npm config set registry https://registry.npm.taobao.org
RUN npm cache clean --force
RUN npm config set strict-ssl false

Expand All @@ -16,7 +15,6 @@ FROM node:18.12.1-alpine as build-submodule-stage
WORKDIR /data/rill-flow-graph
COPY ./flow-graph ./

RUN npm config set registry https://registry.npm.taobao.org
RUN npm cache clean --force
RUN npm config set strict-ssl false

Expand Down

0 comments on commit 944c5eb

Please sign in to comment.