yanxiang-console-V6-amd64 #429
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: yanxiang-console-V6-amd64 | |
on: | |
workflow_dispatch: | |
inputs: | |
branch: | |
description: 'branch' | |
required: true | |
default: 'yanxiang-new' | |
version: | |
description: 'version' | |
required: true | |
default: 'yx-0515' | |
env: | |
DOMESTIC_DOCKER_USERNAME: zhangq@goodrain | |
DOMESTIC_DOCKER_PASSWORD: ${{ secrets.DOMESTIC_DOCKER_PASSWORD }} | |
DOMESTIC_BASE_NAME: registry.cn-hangzhou.aliyuncs.com | |
DOMESTIC_NAMESPACE: goodrain | |
GIT_REPO: ${{ secrets.GIT_REPO }} | |
jobs: | |
build-ui: | |
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 }} | |
run: | | |
git clone -b ${{ github.event.inputs.branch }} --depth=1 $GIT_REPO/goodrain/rainbond-ui-cloud.git && cd rainbond-ui-cloud | |
chmod +x ./build.sh && ./build.sh | |
docker build -f build/Dockerfile.nginx -t registry.cn-hangzhou.aliyuncs.com/goodrain/appstore-user-ui:$VERSION . | |
echo "$DOMESTIC_DOCKER_PASSWORD" | docker login -u zhangq@goodrain --password-stdin registry.cn-hangzhou.aliyuncs.com | |
docker push registry.cn-hangzhou.aliyuncs.com/goodrain/appstore-user-ui:$VERSION | |
docker tag registry.cn-hangzhou.aliyuncs.com/goodrain/appstore-user-ui:$VERSION registry.cn-hangzhou.aliyuncs.com/goodrain/appstore-admin-ui:$VERSION | |
docker push registry.cn-hangzhou.aliyuncs.com/goodrain/appstore-admin-ui:$VERSION | |
build-allinone: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Pull code and Build allinone image | |
env: | |
TRAVIS_PULL_REQUEST: false | |
ADAPTOR_BRANCH: enterprise-2023 | |
VERSION: ${{ github.event.inputs.version }} | |
run: | | |
git clone -b ${{ github.event.inputs.branch }} --depth=1 $GIT_REPO/goodrain/rainbond-console-cloud.git && cd rainbond-console-cloud | |
chmod +x ./release.sh | |
./release.sh allinone |