diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index f3d4fca..8a56fe9 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 AlexandreMaquet-HeArc --password-stdin + - name: Build the Docker image + run: docker build . --file Dockerfile --tag ghcr.io/AlexandreMaquet-HeArc/tp2:latest + - name: Push the image into the registry + run: docker push ghcr.io/AlexandreMaquet-HeArc/tp2:latest \ No newline at end of file diff --git a/reponses.md b/reponses.md index c0a35c7..d50b0ae 100644 --- a/reponses.md +++ b/reponses.md @@ -8,3 +8,7 @@ - Q: La première étape contient le mot-clé ‘with’, a quoi sert-il ? - R: Ce mot permet de spécifier certains prérequis à utiliser. Dans ce cas, cela force à utiliser la version 3.10 de Python + + +TODO: ex1.c +https://github.com/AlexandreMaquet-HeArc/TP2_IND-LOG \ No newline at end of file