From a3545e592898af04dc9e1c9a2eb931d532dea507 Mon Sep 17 00:00:00 2001 From: dirtycajunrice Date: Wed, 13 Feb 2019 21:08:38 -0600 Subject: [PATCH 1/3] version bump to 1.2.1 + develop branch + twine fix + setup.py maintainer add --- Jenkinsfile | 2 +- pyouroboros/__init__.py | 4 ++-- setup.py | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index bd385e0f..d08646d3 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -126,7 +126,7 @@ pipeline { steps { sh """ python3 -m venv venv && venv/bin/pip install twine - venv/bin/python setup.py sdist && venv/bin/python -m twine --skip-existing -u ${PYPI_CREDS_USR} -p ${PYPI_CREDS_PSW} upload dist/* + venv/bin/python setup.py sdist && venv/bin/python -m twine upload --skip-existing -u ${PYPI_CREDS_USR} -p ${PYPI_CREDS_PSW} dist/* git tag ${TAG} git push --tags """ diff --git a/pyouroboros/__init__.py b/pyouroboros/__init__.py index 5ae08196..e0eae5d5 100644 --- a/pyouroboros/__init__.py +++ b/pyouroboros/__init__.py @@ -1,2 +1,2 @@ -VERSION = "1.2.0" -BRANCH = "master" +VERSION = "1.2.1" +BRANCH = "develop" diff --git a/setup.py b/setup.py index d4e49abc..caeaa52b 100644 --- a/setup.py +++ b/setup.py @@ -17,6 +17,7 @@ def readme(): setup( name='ouroboros-cli', version=VERSION, + maintainer='circa10a', description='Automatically update running docker containers', long_description=readme(), long_description_content_type='text/markdown', From cf3b729a474c339e82d53af81bd6c09aef353ec5 Mon Sep 17 00:00:00 2001 From: dirtycajunrice Date: Wed, 13 Feb 2019 22:34:45 -0600 Subject: [PATCH 2/3] fixes #210 --- pyouroboros/dockerclient.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pyouroboros/dockerclient.py b/pyouroboros/dockerclient.py index 9299d824..d43c3d88 100644 --- a/pyouroboros/dockerclient.py +++ b/pyouroboros/dockerclient.py @@ -133,6 +133,8 @@ def pull(self, current_tag): if not tag: self.logger.error('Missing tag. Skipping...') raise ConnectionError + elif ':' not in tag: + tag = f'{tag}:latest' self.logger.debug('Checking tag: %s', tag) try: if self.config.dry_run: @@ -236,7 +238,6 @@ def socket_check(self): latest_image = self.pull(current_tag) except ConnectionError: continue - if current_image.id != latest_image.id: updateable.append((container, current_image, latest_image)) else: From c667512c9dbabcab2a53f6b4151fa436f2595e83 Mon Sep 17 00:00:00 2001 From: dirtycajunrice Date: Wed, 13 Feb 2019 22:43:30 -0600 Subject: [PATCH 3/3] version bump + changelog --- CHANGELOG.md | 16 +++++++++++++++- pyouroboros/__init__.py | 2 +- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4b866691..4d62f174 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,20 @@ # Change Log -## [1.2.0](https://github.com/pyouroboros/ouroboros/tree/1.2.0) (2019-02-13) +## [1.2.1](https://github.com/pyouroboros/ouroboros/tree/1.2.1) (2019-02-13) +[Full Changelog](https://github.com/pyouroboros/ouroboros/compare/1.2.0...1.2.1) + +**Fixed bugs:** + +- Broken when no :tag specified [\#210](https://github.com/pyouroboros/ouroboros/issues/210) + +**Other Pull Requests** + +- v1.2.1 Merge [\#213](https://github.com/pyouroboros/ouroboros/pull/213) ([DirtyCajunRice](https://github.com/DirtyCajunRice)) +- v1.2.1 to develop [\#212](https://github.com/pyouroboros/ouroboros/pull/212) ([DirtyCajunRice](https://github.com/DirtyCajunRice)) +- fixes \#210 [\#211](https://github.com/pyouroboros/ouroboros/pull/211) ([DirtyCajunRice](https://github.com/DirtyCajunRice)) +- version bump to 1.2.1 + develop branch + twine fix + … [\#209](https://github.com/pyouroboros/ouroboros/pull/209) ([DirtyCajunRice](https://github.com/DirtyCajunRice)) + +## [1.2.0](https://github.com/pyouroboros/ouroboros/tree/1.2.0) (2019-02-14) [Full Changelog](https://github.com/pyouroboros/ouroboros/compare/1.1.2...1.2.0) **Implemented enhancements:** diff --git a/pyouroboros/__init__.py b/pyouroboros/__init__.py index e0eae5d5..0ffeb46f 100644 --- a/pyouroboros/__init__.py +++ b/pyouroboros/__init__.py @@ -1,2 +1,2 @@ VERSION = "1.2.1" -BRANCH = "develop" +BRANCH = "master"