Skip to content

Commit

Permalink
Add docker to Github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
tuduun authored Mar 21, 2024
1 parent 0fdcbe6 commit a2a7886
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,12 @@ jobs:
- name: Check code coverage
run: |
poetry run coverage run -m pytest
poetry run coverage report -m --fail-under=80
poetry run coverage report -m --fail-under=90
- name: Log in to GitHub Container Registry
run: echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u ${{ github.actor }} --password-stdin

- name: Build and push Docker image
run: |
docker build -t ghcr.io/${{ github.repository }}/Tugi-Macro-Layoffs:latest .
docker push ghcr.io/${{ github.repository }}/Tugi-Macro-Layoffs:latest

0 comments on commit a2a7886

Please sign in to comment.