diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml new file mode 100644 index 0000000..435bef4 --- /dev/null +++ b/.github/workflows/docker-image.yml @@ -0,0 +1,30 @@ +name: Build and Push Docker Image + +on: + push: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v1 + + - name: Log in to Docker Hub + uses: docker/login-action@v1 + with: + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} + + - name: Build and push Docker image + uses: docker/build-push-action@v2 + with: + context: . + push: true + tags: lomigandtux/meson-gcc:latest diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..6e7f534 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,12 @@ +FROM gcc:latest + +# Installer Python3, pip, Ninja et Meson +RUN apt-get update && apt-get install -y \ + python3 \ + python3-pip \ + ninja-build && \ + pip3 install meson && \ + apt-get clean && rm -rf /var/lib/apt/lists/* + +# Définir le répertoire de travail par défaut +WORKDIR /app