Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 2 additions & 12 deletions .github/workflows/all-contributors.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,8 @@
name: all-contributors

# Disabled in this fork; CI runs via internal pipelines.
on:
schedule:
# * is a special character in YAML so you have to quote this string
# ┌───────────── minute (0 - 59)
# │ ┌───────────── hour (0 - 23)
# │ │ ┌───────────── day of the month (1 - 31)
# │ │ │ ┌───────────── month (1 - 12 or JAN-DEC)
# │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT)
# │ │ │ │ │
# │ │ │ │ │
# │ │ │ │ │
- cron: '0 0,12 * * *'

workflow_dispatch:
jobs:
contributor:
runs-on: ubuntu-latest
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/check-issue.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
name: Add Comment for issue

# Disabled in this fork; CI runs via internal pipelines.
on:
issues:
types: [opened]

workflow_dispatch:
jobs:
check_issue_title:
name: Check issue
Expand Down
29 changes: 2 additions & 27 deletions .github/workflows/code-checker.yaml
Original file line number Diff line number Diff line change
@@ -1,34 +1,9 @@
name: Code Checker
# TODO: do not trigger action for some document file update

# This workflow is triggered on pushes or pull request to the repository.
# Disabled in this fork; CI runs via internal pipelines.
on:
push:
branches:
- master
pull_request:
# file paths to consider in the event. Optional; defaults to all.
paths:
- 'scripts/**'
- 'internal/**'
- 'pkg/**'
- 'client/**'
- 'cmd/**'
- 'build/**'
- 'tests/integration/**'
- 'tests/go_client/**'
- '.github/workflows/code-checker.yaml'
- '.env'
- docker-compose.yml
- Makefile
- '!**.md'
- '!build/ci/jenkins/**'
# FIXME(wxyu): not need to run code check, update the ci-passed rules and remove these two lines
- go.mod
- go.sum
- .golangci.yml
- rules.go

workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
Expand Down
14 changes: 2 additions & 12 deletions .github/workflows/daily-release.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,7 @@
name: Daily Release
# Disabled in this fork; CI runs via internal pipelines.
on:
schedule:
# * is a special character in YAML so you have to quote this string
# ┌───────────── minute (0 - 59)
# │ ┌───────────── hour (0 - 23)
# │ │ ┌───────────── day of the month (1 - 31)
# │ │ │ ┌───────────── month (1 - 12 or JAN-DEC)
# │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT)
# │ │ │ │ │
# │ │ │ │ │
# │ │ │ │ │
- cron: '0 18 * * *'

workflow_dispatch:
jobs:
nightly:
name: Run Daily Release
Expand Down
8 changes: 2 additions & 6 deletions .github/workflows/jenkins-checker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,9 @@ name: Jenkins Checker
# Lint Jenkinsfile and related groovy files


# Disabled in this fork; CI runs via internal pipelines.
on:
pull_request:
# file paths to consider in the event. Optional; defaults to all.
paths:
- 'build/ci/jenkins/**.groovy'
- 'ci/jenkins/**.groovy'
- '.github/workflows/jenkins-checker.yaml'
workflow_dispatch:
jobs:
check-jenkinsfile:
name: Jenkinsfile Checker
Expand Down
27 changes: 2 additions & 25 deletions .github/workflows/mac.yaml
Original file line number Diff line number Diff line change
@@ -1,31 +1,8 @@
name: Mac Code Checker

# This workflow is triggered on pushes or pull request to the repository.
# Disabled in this fork; CI runs via internal pipelines.
on:
push:
branches:
- master
pull_request:
# file paths to consider in the event. Optional; defaults to all.
paths:
- 'scripts/**'
- 'internal/**'
- 'pkg/**'
- 'client/**'
- 'cmd/**'
- 'build/**'
- 'tests/integration/**'
- 'tests/go_client/**'
- '.github/workflows/mac.yaml'
- '.env'
- docker-compose.yml
- Makefile
- '!**.md'
- '!build/ci/jenkins/**'
# FIXME(wxyu): not need to run code check, update the ci-passed rules and remove these two lines
- go.mod
- go.sum

workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
Expand Down
38 changes: 2 additions & 36 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -1,42 +1,8 @@
name: Build and test

# This workflow is triggered on pushes or pull request to the repository.
# Disabled in this fork; CI runs via internal pipelines.
on:
push:
# file paths to consider in the event. Optional; defaults to all.
paths:
- 'scripts/**'
- 'internal/**'
- 'client/**'
- 'pkg/**'
- 'cmd/**'
- 'build/**'
- 'tests/integration/**' # run integration test
- '.github/workflows/main.yaml'
- '.env'
- docker-compose.yml
- Makefile
- go.mod
- '!**.md'
- '!build/ci/jenkins/**'
pull_request:
# file paths to consider in the event. Optional; defaults to all.
paths:
- 'scripts/**'
- 'internal/**'
- 'pkg/**'
- 'client/**'
- 'cmd/**'
- 'build/**'
- 'tests/integration/**' # run integration test
- '.github/workflows/main.yaml'
- '.env'
- docker-compose.yml
- Makefile
- go.mod
- '!**.md'
- '!build/ci/jenkins/**'

workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/markdown-check.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
name: Markdown Links Check
# Disabled in this fork; CI runs via internal pipelines.
on:
workflow_dispatch:
schedule:
- cron: "30 20 * * *"

jobs:
check-links:
runs-on: ubuntu-latest
Expand Down
20 changes: 4 additions & 16 deletions .github/workflows/publish-builder.yaml
Original file line number Diff line number Diff line change
@@ -1,21 +1,9 @@
name: Publish Builder
# TODO: do not trigger action for some document file update

# This workflow is triggered on pushes or pull request to the repository.
# Disabled in this fork; CI runs via internal pipelines.
on:
push:
# file paths to consider in the event. Optional; defaults to all.
paths:
- 'build/docker/builder/cpu/**'
- '.github/workflows/publish-builder.yaml'
- '!**.md'
pull_request:
# file paths to consider in the event. Optional; defaults to all.
paths:
- 'build/docker/builder/cpu/**'
- '.github/workflows/publish-builder.yaml'
- '!**.md'

workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
Expand Down Expand Up @@ -46,7 +34,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v2
- name: Get version from system time after release step
id: extracter
id: extractor
run: |
echo "::set-output name=version::$(date +%Y%m%d)"
echo "::set-output name=sha_short::$(git rev-parse --short=7 HEAD)"
Expand Down Expand Up @@ -85,6 +73,6 @@ jobs:
uses: ./.github/actions/bump-builder-version
if: success() && github.event_name == 'push' && github.repository == 'milvus-io/milvus' && matrix.os == 'ubuntu22.04'
with:
tag: "${{ steps.extracter.outputs.version }}-${{ steps.extracter.outputs.sha_short }}"
tag: "${{ steps.extractor.outputs.version }}-${{ steps.extractor.outputs.sha_short }}"
type: cpu
token: ${{ secrets.ALL_CONTRIBUTORS_TOKEN }}
18 changes: 3 additions & 15 deletions .github/workflows/publish-gpu-builder.yaml
Original file line number Diff line number Diff line change
@@ -1,20 +1,8 @@
name: Publish Gpu Builder
# TODO: do not trigger action for some document file update

# This workflow is triggered on pushes or pull request to the repository.
# Disabled in this fork; CI runs via internal pipelines.
on:
push:
# file paths to consider in the event. Optional; defaults to all.
paths:
- 'build/docker/builder/gpu/**'
- '.github/workflows/publish-gpu-builder.yaml'
- '!**.md'
pull_request:
# file paths to consider in the event. Optional; defaults to all.
paths:
- 'build/docker/builder/gpu/**'
- '.github/workflows/publish-gpu-builder.yaml'
- '!**.md'
workflow_dispatch:
inputs:
RunnerHost:
Expand All @@ -37,7 +25,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v2
- name: Get version from system time after release step
id: extracter
id: extractor
run: |
echo "version=$(date +%Y%m%d)" >> $GITHUB_OUTPUT
echo "sha_short=$(git rev-parse --short=7 HEAD)" >> $GITHUB_OUTPUT
Expand Down Expand Up @@ -76,6 +64,6 @@ jobs:
if: success() && github.event_name == 'push' && github.repository == 'milvus-io/milvus' && ${{ env.OS == 'ubuntu22.04' }}
uses: ./.github/actions/bump-builder-version
with:
tag: "${{ steps.extracter.outputs.version }}-${{ steps.extracter.outputs.sha_short }}"
tag: "${{ steps.extractor.outputs.version }}-${{ steps.extractor.outputs.sha_short }}"
type: gpu
token: ${{ secrets.ALL_CONTRIBUTORS_TOKEN }}
23 changes: 5 additions & 18 deletions .github/workflows/publish-krte-images.yaml
Original file line number Diff line number Diff line change
@@ -1,22 +1,9 @@
name: Publish KRTE Images
# TODO: do not trigger action for some document file update

# This workflow is triggered on pushes or pull request to the repository.
# Disabled in this fork; CI runs via internal pipelines.
on:
workflow_dispatch:
push:
# file paths to consider in the event. Optional; defaults to all.
paths:
- 'build/docker/krte/**'
- '.github/workflows/publish-krte-images.yaml'
- '!**.md'
pull_request:
# file paths to consider in the event. Optional; defaults to all.
paths:
- 'build/docker/krte/**'
- '.github/workflows/publish-krte-images.yaml'
- '!**.md'

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
Expand All @@ -30,15 +17,15 @@ jobs:
- name: Checkout
uses: actions/checkout@v2
- name: Get version from system time after release step
id: extracter
id: extractor
run: |
echo "::set-output name=version::$(date +%Y%m%d)"
echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
- name: Docker Build
shell: bash
working-directory: build/docker/krte
run: |
export TAG=${{ steps.extracter.outputs.version }}-${{ steps.extracter.outputs.sha_short }}
export TAG=${{ steps.extractor.outputs.version }}-${{ steps.extractor.outputs.sha_short }}
docker build --build-arg IMAGE_ARG="milvusdb/krte:$TAG" --build-arg GO_VERSION=1.15.8 -t "milvusdb/krte:$TAG" .
- name: Docker Push
if: success() && (github.event_name == 'push' || github.event_name == 'workflow_dispatch' )&& github.repository == 'milvus-io/milvus'
Expand All @@ -47,7 +34,7 @@ jobs:
run: |
docker login -u ${{ secrets.DOCKERHUB_USER }} \
-p ${{ secrets.DOCKERHUB_TOKEN }}
export TAG=${{ steps.extracter.outputs.version }}-${{ steps.extracter.outputs.sha_short }}
export TAG=${{ steps.extractor.outputs.version }}-${{ steps.extractor.outputs.sha_short }}
docker push "milvusdb/krte:$TAG"
echo "Push krte image Succeeded"
- name: Update KRTE Image Changes
Expand All @@ -56,7 +43,7 @@ jobs:
shell: bash
working-directory: build/ci/jenkins/pod
run: |
export TAG=${{ steps.extracter.outputs.version }}-${{ steps.extracter.outputs.sha_short }}
export TAG=${{ steps.extractor.outputs.version }}-${{ steps.extractor.outputs.sha_short }}
sed -i "s#krte:.*#krte:${TAG}#g" ./build/ci/jenkins/pod/rte.yaml
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
Expand Down
Loading
Loading