Skip to content

Commit

Permalink
[stream] pr merge 会出错 TencentBlueKing#9031
Browse files Browse the repository at this point in the history
  • Loading branch information
yongyiduan committed Jun 27, 2023
1 parent 0e9a824 commit 06591fe
Showing 1 changed file with 4 additions and 91 deletions.
95 changes: 4 additions & 91 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ jobs:
cloudNative:
needs: [frontend, agent]
name: Build image and helm chart
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
services:
mysql:
image: mysql:8.0
Expand Down Expand Up @@ -171,7 +171,7 @@ jobs:
- name: Setup Python -- CLOUD NATIVE
uses: actions/setup-python@v4
with:
python-version: "3.6.8"
python-version: "3.7.15"
- name: Generate Helm Chart -- CLOUD NATIVE
working-directory: helm-charts/core/ci
run: |
Expand All @@ -194,72 +194,13 @@ jobs:
name: bkci-chart
path: helm-charts/core/ci/bk-ci-charts.tgz

codecc:
name: Build CodeCC
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
with:
cache-read-only: false
- name: Gradle Build
id: codecc-backend
working-directory: src/backend/codecc
run: |
chmod +x gradlew
./gradlew clean copyToRelease
- name: frontend
id: codecc-frontend
run: |
cd src/frontend/devops-codecc
rm -rf dist
npm i
npm run build
if [ -f dist/index.html ]; then
mv dist/index.html dist/frontend#index.html
fi
- name: Create artifact - make package
id: create-artifact
run: |
version="$(basename $GITHUB_REF)"
echo "::set-output name=version::$version"
codecc_pkg_dir=/dev/shm/codecc ./scripts/deploy-codecc/packager-codecc.sh "$version" bkcodecc-slim.tar.gz "$PWD"
- uses: actions/upload-artifact@v1
with:
name: codecc
path: bkcodecc-slim.tar.gz

bkrepo:
name: Build BkRepo
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v3
with:
distribution: "temurin"
java-version: "8"
cache: "gradle"
- name: Create artifact - make package
id: create-artifact
run: |
cd scripts/deploy-storage
./build.sh
- uses: actions/upload-artifact@v1
with:
name: bkrepo
path: bin/bkrepo-slim.tar.gz

releaseAll:
name: Release All
runs-on: ubuntu-latest
if: ${{ always() }}
needs: [backend, cloudNative, codecc, bkrepo]
needs: [backend, cloudNative]
steps:
- name: Create Release
id: create_release
Expand Down Expand Up @@ -302,32 +243,4 @@ jobs:
asset_name: bk-ci-charts.tgz
asset_content_type: application/gzip
## codecc
- name: download codecc
uses: actions/download-artifact@v1
with:
name: codecc
path: ./
- name: Upload Release Asset -- CODECC
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./bkcodecc-slim.tar.gz
asset_name: bkcodecc-slim.tar.gz
asset_content_type: application/gzip
## bkrepo
- name: download bkrepo
uses: actions/download-artifact@v1
with:
name: bkrepo
path: ./
- name: Upload Release Asset -- BKREPO
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./bkrepo-slim.tar.gz
asset_name: bkrepo-slim.tar.gz
asset_content_type: application/gzip

0 comments on commit 06591fe

Please sign in to comment.