Skip to content

Commit

Permalink
Workflow: build&push docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
kolayne committed Feb 16, 2024
1 parent b641241 commit 3d47086
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit 3d47086

Please sign in to comment.