mirror of https://github.com/milvus-io/milvus.git
Filtering for specific paths in Jenkins CI (#1107)
* run hadolint with reviewdog * add LINCENSE in Dockerfile * run hadolint with reviewdog * Reporter of reviewdog command is "github-pr-check" * format Dockerfile * ignore DL3007 in hadolint * clean up old docker images * Add GPU sharing solution on native Kubernetes * nightly test mailer * Filtering for specific paths in Jenkins CI * Filtering for specific paths in Jenkins CI * Filtering for specific paths in Jenkins CI * Filtering for specific paths in Jenkins CI * Filtering for specific paths in Jenkins CI * Filtering for specific paths in Jenkins CI * Test filtering for specific paths in Jenkins CI * Test filtering for specific paths in Jenkins CI * Test filtering for specific paths in Jenkins CI * Test filtering for specific paths in Jenkins CI * Test filtering for specific paths in Jenkins CI * Test filtering for specific paths in Jenkins CI * Test filtering for specific paths in Jenkins CI * Test filtering for specific paths in Jenkins CI * Test filtering for specific paths in Jenkins CI * Filtering for specific paths in Jenkins CIpull/1109/head^2
parent
61517339ea
commit
a347ac8b62
|
@ -1,16 +1,21 @@
|
|||
name: Core
|
||||
|
||||
# This workflow is triggered on pushes or pull request to the repository.
|
||||
on:
|
||||
push:
|
||||
# file paths to consider in the event. Optional; defaults to all.
|
||||
paths:
|
||||
- 'ci/**'
|
||||
- 'core/**'
|
||||
- 'docker/**'
|
||||
- '!**.md'
|
||||
pull_request:
|
||||
# file paths to consider in the event. Optional; defaults to all.
|
||||
paths:
|
||||
- 'ci/**'
|
||||
- 'core/**'
|
||||
- 'docker/**'
|
||||
- '!**.md'
|
||||
|
||||
jobs:
|
||||
ubuntu:
|
||||
|
@ -23,6 +28,7 @@ jobs:
|
|||
env:
|
||||
UBUNTU: ${{ matrix.ubuntu }}
|
||||
steps:
|
||||
# This step checks out a copy of your repository.
|
||||
- name: Checkout Milvus
|
||||
uses: actions/checkout@v1
|
||||
- name: Check Dockerfile
|
||||
|
|
|
@ -64,6 +64,19 @@ pipeline {
|
|||
|
||||
stages {
|
||||
stage('Run Build') {
|
||||
when {
|
||||
anyOf {
|
||||
changeset 'ci/**'
|
||||
changeset 'core/**'
|
||||
changeset 'docker/**'
|
||||
changeset 'test/**'
|
||||
}
|
||||
not {
|
||||
anyOf {
|
||||
changeset '**/*.md'
|
||||
}
|
||||
}
|
||||
}
|
||||
agent {
|
||||
kubernetes {
|
||||
label "${OS_NAME}-${BINARY_VERSION}-build-${env.PIPELINE_NAME}-${env.BUILD_NUMBER}"
|
||||
|
@ -110,6 +123,19 @@ pipeline {
|
|||
}
|
||||
|
||||
stage('Publish docker images') {
|
||||
when {
|
||||
anyOf {
|
||||
changeset 'ci/**'
|
||||
changeset 'core/**'
|
||||
changeset 'docker/**'
|
||||
changeset 'test/**'
|
||||
}
|
||||
not {
|
||||
anyOf {
|
||||
changeset '**/*.md'
|
||||
}
|
||||
}
|
||||
}
|
||||
agent {
|
||||
kubernetes {
|
||||
label "${OS_NAME}-${BINARY_VERSION}-publish-${env.PIPELINE_NAME}-${env.BUILD_NUMBER}"
|
||||
|
@ -132,6 +158,19 @@ pipeline {
|
|||
}
|
||||
|
||||
stage('Deploy to Development') {
|
||||
when {
|
||||
anyOf {
|
||||
changeset 'ci/**'
|
||||
changeset 'core/**'
|
||||
changeset 'docker/**'
|
||||
changeset 'test/**'
|
||||
}
|
||||
not {
|
||||
anyOf {
|
||||
changeset '**/*.md'
|
||||
}
|
||||
}
|
||||
}
|
||||
environment {
|
||||
FROMAT_SEMVER = "${env.SEMVER}".replaceAll("\\.", "-").replaceAll("_", "-")
|
||||
FORMAT_OS_NAME = "${OS_NAME}".replaceAll("\\.", "-").replaceAll("_", "-")
|
||||
|
|
Loading…
Reference in New Issue