mirror of
https://gitee.com/rainbond/Rainbond.git
synced 2024-12-04 04:38:04 +08:00
38 lines
1.2 KiB
YAML
38 lines
1.2 KiB
YAML
name: commit-ci-build
|
|
|
|
on:
|
|
push:
|
|
branches: [master, V5.3, V5.4]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
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.13
|
|
- name: SonarQube Scan
|
|
uses: kitabisa/sonarqube-action@v1.1.0
|
|
with:
|
|
host: ${{ secrets.SONARQUBE_HOST }}
|
|
login: ${{ secrets.SONARQUBE_TOKEN }}
|
|
projectName: rainbond
|
|
|
|
- name: Extract branch name
|
|
shell: bash
|
|
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
|
|
id: extract_branch
|
|
|
|
- name: Build the Docker image
|
|
env:
|
|
DISABLE_GOPROXY: true
|
|
DOMESTIC_BASE_NAME: registry.cn-hangzhou.aliyuncs.com
|
|
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
|
|
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
|
|
DOMESTIC_DOCKER_PASSWORD: ${{ secrets.DOMESTIC_DOCKER_PASSWORD }}
|
|
DOMESTIC_DOCKER_USERNAME: ${{ secrets.DOMESTIC_DOCKER_USERNAME }}
|
|
run: VERSION=${{ steps.extract_branch.outputs.branch }}-dev ./release.sh all push
|