Skip to content

fix: change upload limit #4492

fix: change upload limit

fix: change upload limit #4492

Workflow file for this run

name: CICD-PUSH
on:
push:
branches:
- '*'
- '*/*'
tags-ignore:
- '*'
env:
GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
BASE_BRANCH: origin/main
GO_VERSION: "1.20"
jobs:
trigger-mode:
runs-on: ubuntu-latest
outputs:
trigger-mode: ${{ steps.get_trigger_mode.outputs.trigger_mode }}
steps:
- name: Cancel Previous Runs
if: github.ref_name != 'main'
uses: styfle/[email protected]
with:
all_but_latest: true
access_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Get trigger mode
id: get_trigger_mode
run: |
TRIGGER_MODE=`bash .github/utils/utils.sh --type 6 \
--branch-name "${{ github.ref_name }}" \
--base-branch "${{ env.BASE_BRANCH }}"`
echo $TRIGGER_MODE
echo trigger_mode=$TRIGGER_MODE >> $GITHUB_OUTPUT
pre-push:
needs: trigger-mode
runs-on: ubuntu-latest
name: Push Pre-Check
steps:
- uses: actions/checkout@v4
- name: Spell Check with Typos
if: contains(needs.trigger-mode.outputs.trigger-mode, '[docs]')
uses: crate-ci/[email protected]
with:
files: docs/
config: .github/utils/typos.toml
unit-test:
needs: trigger-mode
runs-on: ubuntu-latest
if: contains(needs.trigger-mode.outputs.trigger-mode, '[test]')
steps:
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: Setup uv
uses: astral-sh/setup-uv@v6
with:
version: "latest"
python-version: "3.11"
github-token: ${{ env.GITHUB_TOKEN }}
- name: make lint
run: |
pip install ruff
make lint
- name: make test
run: |
make install
uv pip install pytest
make unit-test
check-image:
needs: trigger-mode
if: ${{ contains(needs.trigger-mode.outputs.trigger-mode, '[docker]') }}
uses: apecloud/apecloud-cd/.github/workflows/[email protected]
with:
IMG: "apecloud/aperag"
BUILDX_PLATFORMS: "linux/amd64"
DOCKERFILE_PATH: "./Dockerfile"
PYTHON_VERSION: "3.11"
secrets: inherit
check-frontend-image:
needs: trigger-mode
if: ${{ contains(needs.trigger-mode.outputs.trigger-mode, '[frontend]') }}
uses: apecloud/apecloud-cd/.github/workflows/[email protected]
with:
IMG: "apecloud/aperag-frontend"
BUILDX_PLATFORMS: "linux/amd64"
DOCKERFILE_PATH: "./web/Dockerfile"
CONTEXT: "./web"
PYTHON_VERSION: "3.11"
MAKE_OPS_PRE: "build-aperag-frontend-assets"
secrets: inherit
check-helm:
needs: trigger-mode
if: ${{ contains(needs.trigger-mode.outputs.trigger-mode, '[deploy]') }}
uses: apecloud/apecloud-cd/.github/workflows/[email protected]
with:
VERSION: "v0.4.0-check"
CHART_NAME: "aperag"
CHART_DIR: "deploy"
APECD_REF: "v0.1.48"
secrets: inherit