-
Notifications
You must be signed in to change notification settings - Fork 41
60 lines (57 loc) · 1.83 KB
/
release-ui.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
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' }}