Skip to content

chore: release note add breaking changes about api refactor (#1732) #28

chore: release note add breaking changes about api refactor (#1732)

chore: release note add breaking changes about api refactor (#1732) #28

Workflow file for this run

name: CICD-PUSH
on:
push:
branches:
- '*'
- '*/*'
tags-ignore:
- '*'
env:
GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
GITLAB_GO_CACHE_PROJECT_ID: 98800
GO_CACHE: "go-cache"
GO_CACHE_DIR: "/root/.cache"
jobs:
trigger-mode:
runs-on: ubuntu-latest
outputs:
trigger-mode: ${{ steps.get_trigger_mode.outputs.trigger_mode }}
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 2
- name: Get trigger mode
id: get_trigger_mode
run: |
TRIGGER_MODE=`bash .github/utils/utils.sh --type 6`
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@v3
with:
fetch-depth: 2
- name: install pcregrep
run: |
sudo apt-get update
sudo apt-get install pcregrep
- name: gen pcregrep
run: |
pcregrep --exclude-dir=mtr -r -n -I '[^\x00-\x7f]' . > pcregrep.out
- name: pcregrep Chinese
run: |
FILE_PATH=`git diff --name-only HEAD HEAD^`
python ${{ github.workspace }}/.github/utils/pcregrep.py \
--source="${{ github.workspace }}/pcregrep.out" \
--filter="$FILE_PATH"
- 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
make-test:
needs: trigger-mode
runs-on: [self-hosted, eks-fargate-runner ]
if: contains(needs.trigger-mode.outputs.trigger-mode, '[test]')
steps:
- uses: apecloud/checkout@main
- name: Download ${{ env.GO_CACHE }}
if: ${{ github.ref_name != 'main' }}
run: |
bash .github/utils/release_gitlab.sh \
--type 6 \
--project-id ${{ env.GITLAB_GO_CACHE_PROJECT_ID }} \
--tag-name ${{ env.GO_CACHE }} \
--asset-name ${{ env.GO_CACHE }}.tar.gz \
--access-token ${{ secrets.GITLAB_ACCESS_TOKEN }}
- name: Extract ${{ env.GO_CACHE }}
if: ${{ github.ref_name != 'main' }}
uses: a7ul/[email protected]
with:
command: x
cwd: ${{ env.GO_CACHE_DIR }}
files: ${{ env.GO_CACHE }}.tar.gz
- name: make manifests check
run: |
mkdir -p ./bin
cp -r /go/bin/controller-gen ./bin/controller-gen
cp -r /go/bin/setup-envtest ./bin/setup-envtest
make manifests
FILE_CHANGES=`git diff --name-only ${{ github.sha }}`
if [[ ! -z "$FILE_CHANGES" ]]; then
echo $FILE_CHANGES
echo "make manifests causes inconsistent files"
exit 1
fi
- name: make mod-vendor and lint
run: |
make mod-vendor lint
- name: make test
run: |
make test
- name: upload coverage report
uses: codecov/codecov-action@v3
continue-on-error: true
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./cover.out
flags: unittests
name: codecov-report
verbose: true
- name: Compress ${{ env.GO_CACHE }}
if: ${{ github.ref_name == 'main' }}
uses: a7ul/[email protected]
with:
command: c
cwd: ${{ env.GO_CACHE_DIR }}
files: |
./
outPath: ${{ env.GO_CACHE }}.tar.gz
- name: Upload ${{ env.GO_CACHE }} to gitlab
if: ${{ github.ref_name == 'main' }}
run: |
bash .github/utils/release_gitlab.sh \
--type 5 \
--project-id ${{ env.GITLAB_GO_CACHE_PROJECT_ID }} \
--tag-name ${{ env.GO_CACHE }} \
--asset-path ${{ env.GO_CACHE }}.tar.gz \
--access-token ${{ secrets.GITLAB_ACCESS_TOKEN }}
check-image:
needs: trigger-mode
if: contains(needs.trigger-mode.outputs.trigger-mode, '[docker]')
uses: apecloud/apecd/.github/workflows/[email protected]

Check failure on line 144 in .github/workflows/cicd-push.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/cicd-push.yml

Invalid workflow file

error parsing called workflow ".github/workflows/cicd-push.yml" -> "apecloud/apecd/.github/workflows/[email protected]" : workflow was not found. See https://docs.github.com/actions/learn-github-actions/reusing-workflows#access-to-reusable-workflows for more information.
with:
MAKE_OPS_PRE: "generate"
MAKE_OPS: "build-manager-image"
IMG: "apecloud/kubeblocks"
VERSION: "check"
GO_VERSION: 1.19
secrets: inherit
check-helm:
needs: trigger-mode
if: contains(needs.trigger-mode.outputs.trigger-mode, '[deploy]')
uses: apecloud/apecd/.github/workflows/[email protected]
with:
MAKE_OPS: "bump-chart-ver"
VERSION: "v0.4.0-check"
CHART_NAME: "kubeblocks"
CHART_DIR: "deploy/helm"
HELM_SET: "prometheus.enabled=true,grafana.enabled=true,dashboards.enabled=true,dataProtection.enableVolumeSnapshot=true,snapshot-controller.enabled=true"
PUSH_ENABLE: false
secrets: inherit