Skip to content

Commit

Permalink
Update python-app.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ClawdeenFleury authored Mar 19, 2024
1 parent fa7ce64 commit 8a3cbe8
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,17 @@ jobs:
- name: Test with pytest
run: |
pytest
build-and-push-image:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Login to registry
run: echo ${{ secrets.PERSONAL_TOKEN }} | docker login ghcr.io -u ClawdeenFleury --password-stdin

- name: Build the Docker image
run: docker build . --file Dockerfile --tag ghcr.io/ClawdeenFleury/tp2:latest

- name: Push the image into the registry
run: docker push ghcr.io/ClawdeenFleury/tp2:latest

0 comments on commit 8a3cbe8

Please sign in to comment.