Skip to content

Commit bffde7a

Browse files
committed
Add docker image building and pushing as part of CD pipeline and upgrade package version
1 parent 53bf8c5 commit bffde7a

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

.github/workflows/django.yml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,11 @@ jobs:
5353
- name: Clone repository
5454
uses: actions/checkout@v2
5555

56+
- name: Get tag version
57+
if: startsWith(github.ref, 'refs/tags/')
58+
id: get_tag_version
59+
run: echo ::set-output name=TAG::${GITHUB_REF/refs\/tags\//}
60+
5661
- name: Set up python
5762
uses: actions/setup-python@v2
5863
with:
@@ -68,4 +73,15 @@ jobs:
6873
if: startsWith(github.ref, 'refs/tags')
6974
uses: pypa/gh-action-pypi-publish@master
7075
with:
71-
password: ${{ secrets.PYPI_API_TOKEN }}
76+
password: ${{ secrets.PYPI_API_TOKEN }}
77+
78+
- name: Docker - authenticate
79+
if: startsWith(github.ref, 'refs/tags')
80+
uses: docker/login-action@v1
81+
with:
82+
username: ${{ secrets.DOCKER_USERNAME }}
83+
password: ${{ secrets.DOCKER_PASSWORD }}
84+
85+
- name: Docker - build and push images
86+
if: startsWith(github.ref, 'refs/tags')
87+
run: make build_image_and_push image_tag=${{ steps.get_tag_version.outputs.TAG }}

xauth/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "2.2.3"
1+
__version__ = "2.3.0"

0 commit comments

Comments
 (0)