diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index 226f8416e2..ff97271ac6 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -46,3 +46,22 @@ jobs: - name: Test with pytest run: | pytest + + + docker-build-push: + needs: [ lint-test ] + + runs-on: ubuntu-latest + + steps: + - name: Login to Docker Hub + uses: docker/login-action@v3 + with: + username: kolay0ne + password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Build and push docker image + uses: docker/build-push-action@v5 + with: + push: true + context: "{{defaultContext}}:app_python/" + tags: kolay0ne/app_py:${{ github.ref_name }}