Skip to content

Commit

Permalink
added build-docker job in yml file
Browse files Browse the repository at this point in the history
  • Loading branch information
nicomaht committed Mar 19, 2024
1 parent be4e575 commit 40563a6
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,14 @@ jobs:
- name: Test with pytest
run: |
pytest
build-docker-image:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Login to registry
run: echo ${{ secrets.PERSONAL_TOKEN }} | docker \ login ghcr.io -u Nicomatox --password-stdin
- name: Build the Docker image
run: docker build . --file Dockerfile --tag \ ghcr.io/Nicomatox/tp2:latest
- name: Push the image into the registry
run: docker push ghcr.io/Nicomatox/tp2:latest

0 comments on commit 40563a6

Please sign in to comment.