feat: change packing action (#1728)

* feat: change packing action

Signed-off-by: Qi Zhang <smallqi1@163.com>

* feat: change packing action

Signed-off-by: Qi Zhang <smallqi1@163.com>

* feat: add arch script

Signed-off-by: Qi Zhang <smallqi1@163.com>

* feat: add arch script

Signed-off-by: Qi Zhang <smallqi1@163.com>

* feat: add arch script

Signed-off-by: Qi Zhang <smallqi1@163.com>

* feat: change packing action

Signed-off-by: Qi Zhang <smallqi1@163.com>

* feat: add arch script

Signed-off-by: Qi Zhang <smallqi1@163.com>

* feat: change packing action

Signed-off-by: Qi Zhang <smallqi1@163.com>

* feat: change packing action

Signed-off-by: Qi Zhang <smallqi1@163.com>

* feat: change packing action

Signed-off-by: Qi Zhang <smallqi1@163.com>

* feat: change packing action

Signed-off-by: Qi Zhang <smallqi1@163.com>

* feat: change packing action

Signed-off-by: Qi Zhang <smallqi1@163.com>

* feat: change packing action

Signed-off-by: Qi Zhang <smallqi1@163.com>

* feat: change packing action

Signed-off-by: Qi Zhang <smallqi1@163.com>

* feat: change packing action

Signed-off-by: Qi Zhang <smallqi1@163.com>

* feat: change packing action

Signed-off-by: Qi Zhang <smallqi1@163.com>

* fix: peer closed connection in SSL handshake while SSL handshaking to upstream

Signed-off-by: Qi Zhang <smallqi1@163.com>

* feat: push multi arch

Signed-off-by: Qi Zhang <smallqi1@163.com>

---------

Signed-off-by: Qi Zhang <smallqi1@163.com>
This commit is contained in:
Qi Zhang 2023-08-01 11:04:45 +08:00 committed by GitHub
parent b750054e1b
commit 1f05fe51a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 246 additions and 104 deletions

135
.github/scripts/push-arch.sh vendored Normal file
View File

@ -0,0 +1,135 @@
#!/bin/bash
################################################################################
# Copyright (c) Goodrain, Inc.
#
# This source code is licensed under the LGPL-3.0 license found in the
# LICENSE file in the root directory of this source tree.
################################################################################
IMAGE_NAMESPACE=${IMAGE_NAMESPACE:-"rainbond"}
DOMESTIC_NAME=${DOMESTIC_BASE_NAME:-'registry.cn-hangzhou.aliyuncs.com'}
DOMESTIC_NAMESPACE=${DOMESTIC_NAMESPACE:-'goodrain'}
function push_domestic_amd64 {
image_list="$IMAGE_NAMESPACE/rbd-node:$RBD_VER
$IMAGE_NAMESPACE/rbd-resource-proxy:$RBD_VER
$IMAGE_NAMESPACE/rbd-eventlog:$RBD_VER
$IMAGE_NAMESPACE/rbd-worker:$RBD_VER
$IMAGE_NAMESPACE/rbd-gateway:$RBD_VER
$IMAGE_NAMESPACE/rbd-chaos:$RBD_VER
$IMAGE_NAMESPACE/rbd-api:$RBD_VER
$IMAGE_NAMESPACE/rbd-webcli:$RBD_VER
$IMAGE_NAMESPACE/rbd-mq:$RBD_VER
$IMAGE_NAMESPACE/rbd-monitor:$RBD_VER
$IMAGE_NAMESPACE/rbd-mesh-data-panel:$RBD_VER
$IMAGE_NAMESPACE/rbd-init-probe:$RBD_VER
$IMAGE_NAMESPACE/rbd-grctl:$RBD_VER
$IMAGE_NAMESPACE/rbd-shell:$RBD_VER
$IMAGE_NAMESPACE/rainbond-operator:$RBD_VER"
for images in ${image_list}; do
domestic_image=$(echo "${images}" | awk -F"/" '{print $NF}')
docker pull "${images}" || exit 1
docker tag "${images}" "$DOMESTIC_NAME/$DOMESTIC_NAMESPACE/$domestic_image-amd64"
docker push "$DOMESTIC_NAME/$DOMESTIC_NAMESPACE/$domestic_image-amd64"
done
}
function push_domestic_arm64 {
image_list="$IMAGE_NAMESPACE/rbd-node:$RBD_VER-arm64
$IMAGE_NAMESPACE/rbd-resource-proxy:$RBD_VER-arm64
$IMAGE_NAMESPACE/rbd-eventlog:$RBD_VER-arm64
$IMAGE_NAMESPACE/rbd-worker:$RBD_VER-arm64
$IMAGE_NAMESPACE/rbd-gateway:$RBD_VER-arm64
$IMAGE_NAMESPACE/rbd-chaos:$RBD_VER-arm64
$IMAGE_NAMESPACE/rbd-api:$RBD_VER-arm64
$IMAGE_NAMESPACE/rbd-webcli:$RBD_VER-arm64
$IMAGE_NAMESPACE/rbd-mq:$RBD_VER-arm64
$IMAGE_NAMESPACE/rbd-monitor:$RBD_VER-arm64
$IMAGE_NAMESPACE/rbd-mesh-data-panel:$RBD_VER-arm64
$IMAGE_NAMESPACE/rbd-init-probe:$RBD_VER-arm64
$IMAGE_NAMESPACE/rbd-grctl:$RBD_VER-arm64
$IMAGE_NAMESPACE/rbd-shell:$RBD_VER-arm64
$IMAGE_NAMESPACE/rainbond-operator:$RBD_VER-arm64"
for images in ${image_list}; do
domestic_image=$(echo "${images}" | awk -F"/" '{print $NF}')
docker pull "${images}" || exit 1
docker tag "${images}" "$DOMESTIC_NAME/$DOMESTIC_NAMESPACE/$domestic_image"
docker push "$DOMESTIC_NAME/$DOMESTIC_NAMESPACE/$domestic_image"
done
}
function push_arch() {
push_domestic_amd64
push_domestic_arm64
image_list="$DOMESTIC_NAME/$DOMESTIC_NAMESPACE/rbd-node:$RBD_VER
$DOMESTIC_NAME/$DOMESTIC_NAMESPACE/rbd-resource-proxy:$RBD_VER
$DOMESTIC_NAME/$DOMESTIC_NAMESPACE/rbd-eventlog:$RBD_VER
$DOMESTIC_NAME/$DOMESTIC_NAMESPACE/rbd-worker:$RBD_VER
$DOMESTIC_NAME/$DOMESTIC_NAMESPACE/rbd-gateway:$RBD_VER
$DOMESTIC_NAME/$DOMESTIC_NAMESPACE/rbd-chaos:$RBD_VER
$DOMESTIC_NAME/$DOMESTIC_NAMESPACE/rbd-api:$RBD_VER
$DOMESTIC_NAME/$DOMESTIC_NAMESPACE/rbd-webcli:$RBD_VER
$DOMESTIC_NAME/$DOMESTIC_NAMESPACE/rbd-mq:$RBD_VER
$DOMESTIC_NAME/$DOMESTIC_NAMESPACE/rbd-monitor:$RBD_VER
$DOMESTIC_NAME/$DOMESTIC_NAMESPACE/rbd-mesh-data-panel:$RBD_VER
$DOMESTIC_NAME/$DOMESTIC_NAMESPACE/rbd-init-probe:$RBD_VER
$DOMESTIC_NAME/$DOMESTIC_NAMESPACE/rbd-grctl:$RBD_VER
$DOMESTIC_NAME/$DOMESTIC_NAMESPACE/rbd-shell:$RBD_VER
$DOMESTIC_NAME/$DOMESTIC_NAMESPACE/rainbond-operator:$RBD_VER"
for images in ${image_list}; do
domestic_image=$(echo "${images}" | awk -F"/" '{print $NF}')
docker manifest rm "$DOMESTIC_NAME/$DOMESTIC_NAMESPACE/$domestic_image"
docker manifest create "$DOMESTIC_NAME/$DOMESTIC_NAMESPACE/$domestic_image" "$DOMESTIC_NAME/$DOMESTIC_NAMESPACE/$domestic_image-amd64" "$DOMESTIC_NAME/$DOMESTIC_NAMESPACE/$domestic_image-arm64"
docker manifest push "$DOMESTIC_NAME/$DOMESTIC_NAMESPACE/$domestic_image"
done
}
function push_arch_allinone {
docker pull "$IMAGE_NAMESPACE/rainbond:${RBD_VER}-allinone" || exit 1
docker tag "$IMAGE_NAMESPACE/rainbond:${RBD_VER}-allinone" "$DOMESTIC_NAME/$DOMESTIC_NAMESPACE/rainbond:${RBD_VER}-allinone-amd64"
docker push "$DOMESTIC_NAME/$DOMESTIC_NAMESPACE/rainbond:${RBD_VER}-allinone-amd64"
docker pull "$IMAGE_NAMESPACE/rainbond:${RBD_VER}-arm64-allinone" || exit 1
docker tag "$IMAGE_NAMESPACE/rainbond:${RBD_VER}-arm64-allinone" "$DOMESTIC_NAME/$DOMESTIC_NAMESPACE/rainbond:${RBD_VER}-arm64-allinone"
docker push "$DOMESTIC_NAME/$DOMESTIC_NAMESPACE/rainbond:${RBD_VER}-arm64-allinone"
docker manifest rm "$DOMESTIC_NAME/$DOMESTIC_NAMESPACE/rainbond:${RBD_VER}-allinone"
docker manifest create "$DOMESTIC_NAME/$DOMESTIC_NAMESPACE/rainbond:${RBD_VER}-allinone" "$DOMESTIC_NAME/$DOMESTIC_NAMESPACE/rainbond:${RBD_VER}-allinone-amd64" "$DOMESTIC_NAME/$DOMESTIC_NAMESPACE/rainbond:${RBD_VER}-arm64-allinone"
docker manifest push "$DOMESTIC_NAME/$DOMESTIC_NAMESPACE/rainbond:${RBD_VER}-allinone"
docker manifest create "$DOMESTIC_NAME/$DOMESTIC_NAMESPACE/rainbond:${RBD_VER}" "$DOMESTIC_NAME/$DOMESTIC_NAMESPACE/rainbond:${RBD_VER}-allinone-amd64" "$DOMESTIC_NAME/$DOMESTIC_NAMESPACE/rainbond:${RBD_VER}-arm64-allinone"
docker manifest push "$DOMESTIC_NAME/$DOMESTIC_NAMESPACE/rainbond:${RBD_VER}"
}
function push_arch_dind {
docker pull "$IMAGE_NAMESPACE/rainbond:${RBD_VER/-release}-dind-allinone" || exit 1
docker tag "$IMAGE_NAMESPACE/rainbond:${RBD_VER/-release}-dind-allinone" "$DOMESTIC_NAME/$DOMESTIC_NAMESPACE/rainbond:${RBD_VER/-release}-dind-allinone-amd64"
docker push "$DOMESTIC_NAME/$DOMESTIC_NAMESPACE/rainbond:${RBD_VER/-release}-dind-allinone-amd64"
docker pull "$IMAGE_NAMESPACE/rainbond:${RBD_VER/-release}-arm64-dind-allinone" || exit 1
docker tag "$IMAGE_NAMESPACE/rainbond:${RBD_VER/-release}-arm64-dind-allinone" "$DOMESTIC_NAME/$DOMESTIC_NAMESPACE/rainbond:${RBD_VER/-release}-arm64-dind-allinone"
docker push "$DOMESTIC_NAME/$DOMESTIC_NAMESPACE/rainbond:${RBD_VER/-release}-arm64-dind-allinone"
docker manifest rm "$DOMESTIC_NAME/$DOMESTIC_NAMESPACE/rainbond:${RBD_VER/-release}-dind-allinone"
docker manifest create "$DOMESTIC_NAME/$DOMESTIC_NAMESPACE/rainbond:${RBD_VER/-release}-dind-allinone" "$DOMESTIC_NAME/$DOMESTIC_NAMESPACE/rainbond:${RBD_VER/-release}-dind-allinone-amd64" "$DOMESTIC_NAME/$DOMESTIC_NAMESPACE/rainbond:${RBD_VER/-release}-arm64-dind-allinone"
docker manifest push "$DOMESTIC_NAME/$DOMESTIC_NAMESPACE/rainbond:${RBD_VER/-release}-dind-allinone"
}
docker login "${DOMESTIC_NAME}" -u "$DOMESTIC_DOCKER_USERNAME" -p "$DOMESTIC_DOCKER_PASSWORD"
push_arch
push_arch_allinone
push_arch_dind

View File

@ -4,168 +4,175 @@ on:
types:
- GitHub
- GitLab
env:
VERSION: ${{ github.event.client_payload.version }}
jobs:
build-ui:
runs-on: ubuntu-latest
runs-on: ${{ github.event.client_payload.os }}
environment: ${{ github.event.client_payload.environment }}
steps:
- uses: actions/checkout@v2
- name: Build the Docker image
env:
BUILD_RBD_APP_UI: false
TRAVIS_PULL_REQUEST: false
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
# GitHub
DOCKER_USERNAME: ${{ vars.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
IMAGE_NAMESPACE: ${{ secrets.IMAGE_NAMESPACE }}
VERSION: ${{ github.event.client_payload.version }}
# GitLab
UI_DOCKER_USERNAME: ${{ vars.UI_DOCKER_USERNAME }}
UI_DOCKER_PASSWORD: ${{ secrets.UI_DOCKER_PASSWORD }}
ALLINONE: ${{ vars.ALLINONE }}
ROUTE_MODE: ${{ vars.ROUTE_MODE }}
run: |
if [ ${{ github.event.action }} == 'GitHub' ];then
git clone -b ${{ github.event.client_payload.branch }} ${{ github.event.client_payload.clone_url }}/rainbond-ui.git
cd rainbond-ui
echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
else
git clone -b ${{ github.event.client_payload.branch }} ${{ github.event.client_payload.clone_url }}/rainbond-ui-cloud.git
cd rainbond-ui-cloud
echo "$UI_DOCKER_PASSWORD" | docker login -u "$UI_DOCKER_USERNAME" --password-stdin
fi
cd rainbond-ui
chmod +x ./build.sh
./build.sh
docker build -t rainbond/rainbond-ui:$VERSION .
docker push rainbond/rainbond-ui:$VERSION
build-rainbond-allinone:
needs: build-ui
runs-on: ubuntu-20.04
runs-on: ${{ github.event.client_payload.os }}
environment: ${{ github.event.client_payload.environment }}
steps:
- name: Set up Python 3.6
uses: actions/setup-python@v2
with:
python-version: 3.6
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 yapf==0.26.0
- name: Pull code and Build allinone image
env:
VERSION: ${{ github.event.client_payload.version }}
TRAVIS_PULL_REQUEST: false
DOMESTIC_NAMESPACE: ${{ secrets.DOMESTIC_NAMESPACE }}
DOMESTIC_DOCKER_PASSWORD: ${{ secrets.DOMESTIC_DOCKER_PASSWORD }}
DOMESTIC_DOCKER_USERNAME: ${{ secrets.DOMESTIC_DOCKER_USERNAME }}
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
ADAPTOR_BRANCH: ${{ vars.ADAPTOR_BRANCH}}
BUILD_ARCH: ${{ vars.BUILD_ARCH}}
# GitHub
DOCKER_USERNAME: ${{ vars.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
IMAGE_NAMESPACE: ${{ secrets.IMAGE_NAMESPACE }}
DOMESTIC_BASE_NAME: ${{ secrets.DOMESTIC_BASE_NAME }}
ADAPTOR_BRANCH: ${{ secrets.ADAPTOR_BRANCH}}
# GitLab
DOMESTIC_DOCKER_USERNAME: ${{ vars.DOMESTIC_DOCKER_USERNAME }}
DOMESTIC_DOCKER_PASSWORD: ${{ secrets.DOMESTIC_DOCKER_PASSWORD }}
DOMESTIC_BASE_NAME: ${{ vars.DOMESTIC_BASE_NAME }}
DOMESTIC_NAMESPACE: ${{ vars.DOMESTIC_NAMESPACE }}
run: |
if [ ${{ github.event.action }} == 'GitHub' ];then
git clone -b ${{ github.event.client_payload.branch }} ${{ github.event.client_payload.clone_url }}/rainbond-console.git
cd rainbond-console
else
git clone -b ${{ github.event.client_payload.branch }} ${{ github.event.client_payload.clone_url }}/rainbond-console-cloud.git
cd rainbond-console-cloud
fi
cd rainbond-console
chmod +x ./release.sh
./release.sh allinone
build-rainbond-region:
runs-on: ubuntu-latest
runs-on: ${{ github.event.client_payload.os }}
environment: ${{ github.event.client_payload.environment }}
strategy:
matrix:
component: [api, chaos, gateway, monitor, mq, webcli, worker, eventlog, init-probe, mesh-data-panel, node, resource-proxy]
steps:
- uses: actions/checkout@v2
- name: Setup Go environment
uses: actions/setup-go@v2.1.3
with:
# The Go version to download (if necessary) and use. Supports semver spec and ranges.
go-version: 1.18
- name: Pull code and Build the Docker image
env:
VERSION: ${{ github.event.client_payload.version }}
DISABLE_GOPROXY: true
DOMESTIC_BASE_NAME: ${{ secrets.DOMESTIC_BASE_NAME }}
IMAGE_NAMESPACE: ${{ secrets.IMAGE_NAMESPACE }}
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
# GitHub
DOCKER_USERNAME: ${{ vars.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
# GitLab
DOMESTIC_DOCKER_USERNAME: ${{ vars.DOMESTIC_DOCKER_USERNAME }}
DOMESTIC_DOCKER_PASSWORD: ${{ secrets.DOMESTIC_DOCKER_PASSWORD }}
DOMESTIC_DOCKER_USERNAME: ${{ secrets.DOMESTIC_DOCKER_USERNAME }}
DOMESTIC_NAMESPACE: ${{ secrets.DOMESTIC_NAMESPACE }}
DOMESTIC_BASE_NAME: ${{ vars.DOMESTIC_BASE_NAME }}
DOMESTIC_NAMESPACE: ${{ vars.DOMESTIC_NAMESPACE }}
run: |
if [ ${{ github.event.action }} == 'GitHub' ];then
git clone -b ${{ github.event.client_payload.branch }} ${{ github.event.client_payload.clone_url }}/rainbond.git
else
git clone -b ${{ github.event.client_payload.branch }} ${{ github.event.client_payload.clone_url }}/rainbond.git
fi
git clone -b ${{ github.event.client_payload.branch }} ${{ github.event.client_payload.clone_url }}/rainbond.git
cd rainbond
chmod +x ./release.sh
./release.sh all push
./release.sh ${{ matrix.component }} push
build-rainbond-region-grctl-shell:
runs-on: ${{ github.event.client_payload.os }}
environment: ${{ github.event.client_payload.environment }}
steps:
- name: Pull code and Build the Docker image
env:
DISABLE_GOPROXY: true
# GitHub
DOCKER_USERNAME: ${{ vars.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
# GitLab
DOMESTIC_DOCKER_USERNAME: ${{ vars.DOMESTIC_DOCKER_USERNAME }}
DOMESTIC_DOCKER_PASSWORD: ${{ secrets.DOMESTIC_DOCKER_PASSWORD }}
DOMESTIC_BASE_NAME: ${{ vars.DOMESTIC_BASE_NAME }}
DOMESTIC_NAMESPACE: ${{ vars.DOMESTIC_NAMESPACE }}
run: |
git clone -b ${{ github.event.client_payload.branch }} ${{ github.event.client_payload.clone_url }}/rainbond.git
cd rainbond
chmod +x ./release.sh
./release.sh grctl push
./release.sh shell push
build-operator:
runs-on: ubuntu-latest
runs-on: ${{ github.event.client_payload.os }}
environment: ${{ github.event.client_payload.environment }}
steps:
- uses: actions/checkout@v2
- name: Setup Go environment
uses: actions/setup-go@v2.1.3
with:
# The Go version to download (if necessary) and use. Supports semver spec and ranges.
go-version: 1.18
- name: install-golint
run: |
git clone https://github.com/golang/lint.git
cd lint/golint
go install
- name: Build and push
env:
IMAGE_NAMESPACE: ${{ secrets.IMAGE_NAMESPACE }}
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
BUILD_ARCH: ${{ vars.BUILD_ARCH}}
# GitHub
DOCKER_USERNAME: ${{ vars.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
# GitLab
DOMESTIC_DOCKER_USERNAME: ${{ vars.DOMESTIC_DOCKER_USERNAME }}
DOMESTIC_DOCKER_PASSWORD: ${{ secrets.DOMESTIC_DOCKER_PASSWORD }}
DOMESTIC_DOCKER_USERNAME: ${{ secrets.DOMESTIC_DOCKER_USERNAME }}
DOMESTIC_BASE_NAME: ${{ secrets.DOMESTIC_BASE_NAME }}
DOMESTIC_NAMESPACE: ${{ secrets.DOMESTIC_NAMESPACE }}
VERSION: ${{ github.event.client_payload.version }}
DOMESTIC_BASE_NAME: ${{ vars.DOMESTIC_BASE_NAME }}
DOMESTIC_NAMESPACE: ${{ vars.DOMESTIC_NAMESPACE }}
OPERATOR_BRANCH: ${{ vars.OPERATOR_BRANCH }}
OPERATOR_URL: ${{ vars.OPERATOR_URL }}
run: |
git clone -b ${{ secrets.OPERATOR_BRANCH }} ${{ github.event.client_payload.clone_url }}/rainbond-operator.git
cd rainbond-operator
if [ ${{ github.event.action }} == 'GitHub' ];then
git clone -b ${{ github.event.client_payload.branch }} ${{ github.event.client_payload.clone_url }}/rainbond-operator.git
cd rainbond-operator
else
git clone -b $OPERATOR_BRANCH $OPERATOR_URL/rainbond-operator.git
cd rainbond-operator
fi
chmod +x ./release.sh
./release.sh
build-dind:
needs: [build-ui,build-rainbond-region,build-operator]
runs-on: ubuntu-20.04
if: ${{ github.event.action }} == 'GitHub'
if: github.event.action == 'GitHub'
needs: [build-ui,build-rainbond-region,build-rainbond-region-grctl-shell,build-operator]
runs-on: ${{ github.event.client_payload.os }}
environment: ${{ github.event.client_payload.environment }}
steps:
- name: Set up Python 3.6
uses: actions/setup-python@v2
with:
python-version: 3.6
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 yapf==0.26.0
- name: Pack offline packages
env:
IMAGE_NAMESPACE: ${{ secrets.IMAGE_NAMESPACE }}
RBD_VER: ${{ github.event.client_payload.version }}
TRAVIS_PULL_REQUEST: false
DOMESTIC_NAMESPACE: ${{ secrets.DOMESTIC_NAMESPACE }}
DOMESTIC_BASE_NAME: ${{ secrets.DOMESTIC_BASE_NAME }}
run: |
git clone -b ${{ github.event.client_payload.branch }} ${{ github.event.client_payload.clone_url }}/rainbond-console.git
cd rainbond-console
chmod +x ./release.sh
- name: Build the Docker image
env:
TRAVIS_PULL_REQUEST: false
IMAGE_NAMESPACE: ${{ secrets.IMAGE_NAMESPACE }}
BUILD_IMAGE_NAMESPACE: ${{ secrets.BUILD_IMAGE_NAMESPACE }}
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
BUILD_ARCH: ${{ vars.BUILD_ARCH}}
ADAPTOR_BRANCH: ${{ vars.ADAPTOR_BRANCH}}
# GitHub
DOCKER_USERNAME: ${{ vars.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
DOMESTIC_NAMESPACE: ${{ secrets.DOMESTIC_NAMESPACE }}
DOMESTIC_DOCKER_PASSWORD: ${{ secrets.DOMESTIC_DOCKER_PASSWORD }}
DOMESTIC_DOCKER_USERNAME: ${{ secrets.DOMESTIC_DOCKER_USERNAME }}
VERSION: ${{ github.event.client_payload.version }}
OPERATOR_BRANCH: ${{ secrets.OPERATOR_BRANCH }}
ADAPTOR_BRANCH: ${{ secrets.ADAPTOR_BRANCH }}
run: |
git clone -b ${{ github.event.client_payload.branch }} ${{ github.event.client_payload.clone_url }}/rainbond-console.git
cd rainbond-console
./release.sh dind
push-arch:
if: github.event.action == 'GitHub' && github.event.client_payload.os == 'self-hosted'
needs: [build-rainbond-allinone,build-rainbond-region,build-rainbond-region-grctl-shell,build-operator,build-dind]
runs-on: ${{ github.event.client_payload.os }}
environment: release-arch
steps:
- uses: actions/checkout@v2
- name: push arch images
env:
RBD_VER: ${{ vars.RBD_VER }}
DOMESTIC_DOCKER_USERNAME: ${{ vars.DOMESTIC_DOCKER_USERNAME }}
DOMESTIC_DOCKER_PASSWORD: ${{ secrets.DOMESTIC_DOCKER_PASSWORD }}
PUSH_ARCH: ${{ vars.PUSH_ARCH }}
run: |
if [ $PUSH_ARCH == 'true' ];then
chmod +x .github/scripts/push-arch.sh && ./.github/scripts/push-arch.sh
fi

View File

@ -1,8 +1,7 @@
name: commit-ci-build
on:
push:
branches: [main, V5.*, fixbug*, Develop*]
workflow_dispatch:
jobs:
build:

View File

@ -14,6 +14,7 @@ server {
proxy_ignore_headers X-Accel-Expires Expires Set-Cookie Cache-Control;
proxy_hide_header Cache-Control;
proxy_hide_header Set-Cookie;
proxy_ssl_server_name on;
location / {
proxy_set_header Host buildpack.oss-cn-shanghai.aliyuncs.com;
proxy_connect_timeout 60s;