Skip to content

Commit

Permalink
cicd
Browse files Browse the repository at this point in the history
  • Loading branch information
breimers committed Apr 2, 2020
1 parent 0263416 commit d6b3334
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 14 deletions.
22 changes: 9 additions & 13 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,35 +2,31 @@ version: 2.1
orbs:
python: circleci/python@0.2.1
jobs:
skip:
executor: python/default
steps:
- run:
command: |
exit 0
build:
executor: python/default
steps:
- checkout
- python/load-cache
- python/install-deps
- python/save-cache
- run:
command: |
sed -i "s/TAG/$CIRCLE_TAG/g" setup.cfg
name: Setting version to Git Tag.
- run:
command: |
python setup.py sdist bdist_wheel
name: Build packages
name: Building packages
- run:
command: |
python -m twine upload --repository-url https://upload.pypi.org/legacy/ -u $PYPI_USER -p $PYPI_PASS dist/*
name: Publish to PyPi
name: Publishing to PyPi
workflows:
main:
jobs:
- skip:
filters:
branches:
only: master
- build:
filters:
branches:
ignore: /.*/
tags:
only: /^[0-9]+(\.[0-9]+)*$/
only: /^\d+\.\d+\.\d+$/
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = django-kubernetes-manager
version = 0.2.5
version = TAG
description = A Django app to manage kubernetes clusters and objects.
long_description = file: README.rst
url = https://github.com/IntrospectData/Django-Kubernetes-Manager
Expand Down

0 comments on commit d6b3334

Please sign in to comment.