Skip to content

Commit

Permalink
fix: all-in-one check region error
Browse files Browse the repository at this point in the history
  • Loading branch information
zsq1234 committed Sep 23, 2024
1 parent 2aef843 commit c3f37e7
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 61 deletions.
2 changes: 1 addition & 1 deletion .github/all-in-one/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ mkdir -p docker-compose \
&& cp ../univer.tar.gz . \
&& tar -xzf univer.tar.gz $tar_overwrite \
&& if [ -f ../license-univer ]; then cp ../license-univer ./configs/; fi \
&& bash run.sh \
&& NOT_CHECK_REGION=true bash run.sh \
&& cd ..

# check service health
Expand Down
30 changes: 0 additions & 30 deletions .github/workflows/all-in-one-amd64.yml

This file was deleted.

30 changes: 0 additions & 30 deletions .github/workflows/all-in-one-arm64.yml

This file was deleted.

54 changes: 54 additions & 0 deletions .github/workflows/all-in-one.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: ☀️ AllInOne

on:
workflow_dispatch:


jobs:
build-amd64:
name: build-amd64
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- run: |
cp -r .github/all-in-one/ . && cd all-in-one
bash build.sh amd64
ls -l
- name: Sync all-in-one.tar to OSS
uses: hexf00/upload-to-oss@v1
with:
source: '${{ env.ALLINONE_PATH }}'
dest: release/${{ env.ALLINONE_TAR }}
bucket: ${{ secrets.OSS_BUCKET }}
region: "oss-cn-shenzhen"
accessKeyId: ${{ secrets.S3_ACCESS_KEY_ID }}
accessKeySecret: ${{ secrets.S3_ACCESS_KEY_SECRET }}
timeout: 1200s

build-arm64:
name: build-arm64
runs-on: [self-hosted, macOS, ARM64]
steps:
- uses: actions/checkout@v4

- run: |
cp -R .github/all-in-one . && cd all-in-one
bash build.sh arm64
ls -l
- name: Sync all-in-one.tar to OSS
uses: hexf00/upload-to-oss@v1
with:
source: '${{ env.ALLINONE_PATH }}'
dest: release/${{ env.ALLINONE_TAR }}
bucket: ${{ secrets.OSS_BUCKET }}
region: "oss-cn-shenzhen"
accessKeyId: ${{ secrets.S3_ACCESS_KEY_ID }}
accessKeySecret: ${{ secrets.S3_ACCESS_KEY_SECRET }}
timeout: 1200s

0 comments on commit c3f37e7

Please # to comment.