Skip to content

Commit

Permalink
chore: add docker publisher to new github flow (#190)
Browse files Browse the repository at this point in the history
Signed-off-by: feng-tao <fengtao04@gmail.com>
  • Loading branch information
feng-tao authored Mar 18, 2021
1 parent 543b7e2 commit af5d4a3
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
13 changes: 13 additions & 0 deletions .github/workflows/publish_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,16 @@ jobs:
with:
user: __token__
password: ${{ secrets.pypi_password }}
build-and-publish-docker-image:
name: Build and publish docker image
runs-on: ubuntu-18.04
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Login with docker
run: docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }}
- name: Publish to Registry for latest
if: success()
run: make build-push-image-latest
- name: Publish to Registry for version
run: make build-push-image-version
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

from setuptools import find_packages, setup

__version__ = '2.5.0'
__version__ = '2.5.1'

requirements_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'requirements.txt')
with open(requirements_path) as requirements_file:
Expand Down

0 comments on commit af5d4a3

Please # to comment.