diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index f3d4fca..5727418 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -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 \ No newline at end of file