Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skip CI on .md files - SG side #635

Merged
merged 10 commits into from
Jan 18, 2023
28 changes: 19 additions & 9 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ parameters:
orb_version:
type: string
description: Deci ai ORB version https://circleci.com/developer/orbs/orb/deci-ai/circleci-common-orb
default: "10.3.1"
default: "10.5.0"
# default: "dev:alpha"

orbs:
Expand Down Expand Up @@ -75,6 +75,8 @@ commands:

jobs:
build:
environment:
CIRCLE_COMPARE_URL: << pipeline.project.git_url >>/compare/<< pipeline.git.base_revision >>..<<pipeline.git.revision>>
parameters:
py_version:
type: string
Expand All @@ -87,6 +89,7 @@ jobs:
steps:
- deci-common/checkout_and_skip_build:
check_version_file: true
skip_md_files: true
- deci-common/get_persisted_version_info
- when:
condition:
Expand Down Expand Up @@ -151,7 +154,7 @@ jobs:

- store_artifacts:
path: ~/sg_logs

change_rc_to_b:
description: "change rc in the tag to b"
docker:
Expand All @@ -161,14 +164,14 @@ jobs:
- run:
name: change the rc to b
command:
|
|
BETA_TAG=$(echo ${CIRCLE_TAG} | sed -e 's|rc|b|'); echo ${BETA_TAG} >> ~/BETA_TAG
cat ~/BETA_TAG
- persist_to_workspace:
root: ~/
paths:
- "BETA_TAG"




Expand Down Expand Up @@ -216,7 +219,7 @@ jobs:
if [[ $(RC_TAG=$(git tag --contains ${CIRCLE_SHA1} | grep -E '[[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+rc[[:digit:]]+' | head -n 1)) ]] ; then
echo "Found RC version: ${RC_TAG}"
echo $RC_TAG >> ~/RC_TAG
else
else
echo "No Rc Tag found for commit"
circleci-agent step halt
fi
Expand Down Expand Up @@ -260,22 +263,22 @@ jobs:
- run:
command: |
if [ -z $RC_TAG ] ; then
circleci-agent step halt
else
circleci-agent step halt
else
echo $RC_TAG
fi
- adding_tag_to_ecr_container_image:
image_repo: << parameters.image_repo >>
source_image_tag: $RC_TAG
new_image_tag: ${CIRCLE_TAG}

testing_supergradients_docker_image:
description: "running integration test on the code"
parameters:
image_repo:
type: string
#reserved for testing when will be done
#machine: true
#machine: true
#resource_class: deci-ai/research-standard
docker:
- image: cimg/base:stable-20.04
Expand All @@ -291,6 +294,8 @@ jobs:


release_candidate:
environment:
CIRCLE_COMPARE_URL: << pipeline.project.git_url >>/compare/<< pipeline.git.base_revision >>..<<pipeline.git.revision>>
parameters:
py_version:
type: string
Expand All @@ -299,6 +304,8 @@ jobs:
steps:
- deci-common/checkout_and_skip_build:
check_version_file: true
skip_md_files: true

- deci-common/get_persisted_version_info
- run:
name: edit package version
Expand All @@ -318,6 +325,8 @@ jobs:
version: $NEW_VERSION

release_version:
environment:
CIRCLE_COMPARE_URL: << pipeline.project.git_url >>/compare/<< pipeline.git.base_revision >>..<<pipeline.git.revision>>
parameters:
py_version:
type: string
Expand All @@ -329,6 +338,7 @@ jobs:
steps:
- deci-common/checkout_and_skip_build:
check_version_file: true
skip_md_files: true
- run:
name: add requirements.txt and requirements.pro.txt to source code
command: |
Expand Down