Skip to content

Commit

Permalink
ORV45-3010: add namespace to vaultlocker and CI fix (#4)
Browse files Browse the repository at this point in the history
* fix: vault namespace added
* Create config.yml for CI
  • Loading branch information
avinashtanniru authored May 19, 2023
1 parent a5725a1 commit 6824b5f
Showing 1 changed file with 109 additions and 3 deletions.
112 changes: 109 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,116 @@ jobs:
image: cimg/python:3.9
steps:
- checkout

- run:
name: Install deps
command: |
pip install -r requirements.txt
- run:
name: Install tox
command: pip install --upgrade pip
release_candidate:
docker:
- <<: *objectrocket-docker-auth
image: cimg/python:3.9

steps:
- checkout

- restore_cache:
keys:
- v1-tox-{{ .Branch }}-{{ checksum "requirements.txt" }}-{{ checksum "requirements.txt" }}
- run:
name: Install deps
command: pip install --upgrade pip tox twine
- run:
name: Release to pypi develop index
command: |
pip install -r requirements.txt
export TWINE_REPOSITORY_URL=$TWINE_REPOSITORY_URL_DEVELOP
python setup.py clean sdist bdist_wheel
twine upload dist/*
- save_cache:
name: Save cached tox dir
key: v1-tox-{{ .Branch }}-{{ checksum "requirements.txt" }}-{{ checksum "requirements.txt" }}
paths:
- .tox
- store_artifacts:
path: ./htmlcov
release_prod:
docker:
- <<: *objectrocket-docker-auth
image: cimg/python:3.9

steps:
- checkout

- restore_cache:
keys:
- v1-tox-{{ .Branch }}-{{ checksum "requirements.txt" }}-{{ checksum "requirements.txt" }}
- run:
name: Install deps
command: pip install --upgrade pip twine

- run:
name: Install tox
command: pip install --upgrade pip tox
name: Release to pypi production index
command: |
export TWINE_REPOSITORY_URL=$TWINE_REPOSITORY_URL_PRODUCTION
python setup.py clean sdist bdist_wheel
twine upload dist/*
- save_cache:
name: Save cached tox dir
key: v1-tox-{{ .Branch }}-{{ checksum "requirements.txt" }}-{{ checksum "requirements.txt" }}
paths:
- .tox

- store_artifacts:
path: ./htmlcov
workflows:
version: 2
test:
jobs:
- test: *context-to-use

release_candidate:
jobs:
- test:
<<: *context-to-use
filters:
tags:
only:
- /^[0-9]+.[0-9]+.[0-9]+rc[0-9]+$/
branches:
ignore: /.*/
- release_candidate:
<<: *context-to-use
requires:
- test
filters:
tags:
only:
- /^[0-9]+.[0-9]+.[0-9]+rc[0-9]+$/
branches:
ignore: /.*/

release_prod:
jobs:
- test:
<<: *context-to-use
filters:
tags:
only:
- /^[0-9]+.[0-9]+.[0-9]+$/
branches:
ignore: /.*/
- release_prod:
<<: *context-to-use
requires:
- test
filters:
tags:
only:
- /^[0-9]+.[0-9]+.[0-9]+$/
branches:
ignore: /.*/

0 comments on commit 6824b5f

Please sign in to comment.