Skip to content

yanxiang-console-V6-amd64 #18

yanxiang-console-V6-amd64

yanxiang-console-V6-amd64 #18

name: yanxiang-console-V6-amd64
on:
workflow_dispatch:
inputs:
branch:
description: 'branch'
required: true
default: 'yanxiang-new'
version_user:
description: 'version_user'
required: true
default: 'yx-0426-user'
version_admin:
description: 'version_admin'
required: true
default: 'yx-0426-admin'
is_yx_or_test:
description: 'is_yx_or_test'
required: true
type: choice
options:
- yx
- test
env:
DOMESTIC_DOCKER_USERNAME: zhangq@goodrain
DOMESTIC_DOCKER_PASSWORD: ${{ secrets.DOMESTIC_DOCKER_PASSWORD }}
DOMESTIC_BASE_NAME: registry.ap-southeast-1.aliyuncs.com
DOMESTIC_NAMESPACE: goodrain-ee
jobs:
build-allinone-user:
runs-on: ubuntu-22.04
steps:
- name: Build the Docker image
env:
BUILD_RBD_APP_UI: false
ALLINONE: true
ROUTE_MODE: history
VERSION: ${{ github.event.inputs.version_user }}
run: |
git clone -b ${{ github.event.inputs.branch }} --depth=1 https://pull-code:gr123465!!@git.goodrain.com/goodrain/rainbond-ui-cloud.git && cd rainbond-ui-cloud
sed -i "s|^const yanxiangType.*|const yanxiangType = 'user';|" config/api.config.js
if [ ${{ github.event.inputs.is_yx_or_test }} == 'yx' ];then
sed -i "s|^const baseUrl.*|const baseUrl = 'https://91iam-gateway.9n1m.com/appstore-user/api';|" config/api.config.js
fi
chmod +x ./build.sh && ./build.sh
docker build -t rainbond/rainbond-ui:$VERSION .
- name: Pull code and Build allinone image
env:
TRAVIS_PULL_REQUEST: false
ADAPTOR_BRANCH: enterprise-2023
VERSION: ${{ github.event.inputs.version_user }}
run: |
git clone -b ${{ github.event.inputs.branch }} --depth=1 https://pull-code:gr123465!!@git.goodrain.com/goodrain/rainbond-console-cloud.git && cd rainbond-console-cloud
chmod +x ./release.sh
./release.sh allinone
build-allinone-admin:
runs-on: ubuntu-22.04
steps:
- name: Build the Docker image
env:
BUILD_RBD_APP_UI: false
ALLINONE: true
ROUTE_MODE: history
VERSION: ${{ github.event.inputs.version_admin }}
run: |
git clone -b ${{ github.event.inputs.branch }} --depth=1 https://pull-code:gr123465!!@git.goodrain.com/goodrain/rainbond-ui-cloud.git && cd rainbond-ui-cloud
sed -i "s|^const yanxiangType.*|const yanxiangType = 'admin';|" config/api.config.js
if [ ${{ github.event.inputs.is_yx_or_test }} == 'yx' ];then
sed -i "s|^const baseUrl.*|const baseUrl = 'https://91iam-mgmt-gateway.9n1m.com/appstore-admin/api';|" config/api.config.js
fi
chmod +x ./build.sh && ./build.sh
docker build -t rainbond/rainbond-ui:$VERSION .
- name: Pull code and Build allinone image
env:
TRAVIS_PULL_REQUEST: false
ADAPTOR_BRANCH: enterprise-2023
VERSION: ${{ github.event.inputs.version_admin }}
run: |
git clone -b ${{ github.event.inputs.branch }} --depth=1 https://pull-code:gr123465!!@git.goodrain.com/goodrain/rainbond-console-cloud.git && cd rainbond-console-cloud
chmod +x ./release.sh
./release.sh allinone