mirror of
https://gitee.com/rainbond/Rainbond.git
synced 2024-12-01 19:28:05 +08:00
feat: update builder compile action
Signed-off-by: Qi Zhang <smallqi1@163.com>
This commit is contained in:
parent
c8a6df5618
commit
018ab3bd03
51
.github/workflows/bulider_runner_packaging.yml
vendored
51
.github/workflows/bulider_runner_packaging.yml
vendored
@ -1,45 +1,72 @@
|
||||
name: builder runner packaging
|
||||
on:
|
||||
repository_dispatch:
|
||||
types:
|
||||
- runner-builder
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
branch:
|
||||
description: 'branch'
|
||||
required: true
|
||||
default: 'master'
|
||||
clone_url:
|
||||
description: 'clone_url'
|
||||
required: true
|
||||
default: 'https://github.com/goodrain'
|
||||
version:
|
||||
description: 'version'
|
||||
default: 'v5.17.1-release'
|
||||
required: true
|
||||
environment:
|
||||
description: 'environment'
|
||||
required: true
|
||||
default: 'release'
|
||||
type: choice
|
||||
options:
|
||||
- release
|
||||
- release-arm
|
||||
os:
|
||||
description: 'os'
|
||||
required: true
|
||||
default: 'ubuntu-22.04'
|
||||
type: choice
|
||||
options:
|
||||
- ubuntu-22.04
|
||||
- self-hosted
|
||||
|
||||
env:
|
||||
VERSION: ${{ github.event.client_payload.version }}
|
||||
VERSION: ${{ github.event.inputs.version }}
|
||||
|
||||
jobs:
|
||||
build-runner:
|
||||
runs-on: ${{ github.event.client_payload.os }}
|
||||
environment: ${{ github.event.client_payload.environment }}
|
||||
runs-on: ${{ github.event.inputs.os }}
|
||||
environment: ${{ github.event.inputs.environment }}
|
||||
steps:
|
||||
- name: Pull code and Build the Docker image
|
||||
env:
|
||||
DOCKER_USERNAME: ${{ vars.DOCKER_USERNAME }}
|
||||
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
|
||||
run: |
|
||||
git clone -b ${{ github.event.client_payload.branch }} ${{ github.event.client_payload.clone_url }}/runner.git
|
||||
git clone -b ${{ github.event.inputs.branch }} ${{ github.event.inputs.clone_url }}/runner.git
|
||||
cd runner
|
||||
chmod +x ./release.sh
|
||||
./release.sh
|
||||
|
||||
build-builder:
|
||||
runs-on: ${{ github.event.client_payload.os }}
|
||||
environment: ${{ github.event.client_payload.environment }}
|
||||
runs-on: ${{ github.event.inputs.os }}
|
||||
environment: ${{ github.event.inputs.environment }}
|
||||
steps:
|
||||
- name: Pull code and Build the Docker image
|
||||
env:
|
||||
DOCKER_USERNAME: ${{ vars.DOCKER_USERNAME }}
|
||||
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
|
||||
run: |
|
||||
git clone -b ${{ github.event.client_payload.branch }} ${{ github.event.client_payload.clone_url }}/builder.git
|
||||
git clone -b ${{ github.event.inputs.branch }} ${{ github.event.inputs.clone_url }}/builder.git
|
||||
cd builder
|
||||
chmod +x ./release.sh
|
||||
./release.sh
|
||||
|
||||
push-arch:
|
||||
if: github.event.client_payload.os == 'self-hosted'
|
||||
if: github.event.inputs.os == 'self-hosted'
|
||||
needs: [build-runner,build-builder]
|
||||
runs-on: ${{ github.event.client_payload.os }}
|
||||
runs-on: ${{ github.event.inputs.os }}
|
||||
environment: release-arch
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
Loading…
Reference in New Issue
Block a user