Update CI setup

This commit is contained in:
Abhilash Raj
2021-09-17 19:55:49 +00:00
committed by GitHub
parent 9fc4fbb12a
commit a5c591226d
5 changed files with 19 additions and 62 deletions

View File

@@ -1,7 +1,11 @@
version: '2'
version: '2.1'
jobs:
build:
parameters:
rolling:
type: string
default: "no"
machine:
image: ubuntu-2004:202010-01
docker_layer_caching: true
@@ -10,9 +14,6 @@ jobs:
BUILDKIT_PROGRESS: plain
steps:
- checkout
- run:
name: Setup Environment
command: source setup_env.sh
- run:
name: Install Python dependencies
command: python3 -m pip install packaging
@@ -21,7 +22,7 @@ jobs:
- python-deps-cache-v1
- run:
name: Building Container Images
command: ./build.sh
command: ./build.sh << parameters.rolling >>
- save_cache:
key: python-deps-cache-v1
paths:
@@ -48,6 +49,7 @@ workflows:
build-and-deploy-workflow:
jobs:
- build:
rolling: "no"
filters:
tags:
only: /^v\d+\.\d+\.\d+$/
@@ -61,11 +63,13 @@ workflows:
only: main
jobs:
- build:
rolling: "yes"
context: org-global
rolling-workflow:
jobs:
- build:
rolling: "yes"
context: org-global
filters:
branches: