From 9fb0cfcb6144b680ab1059a4fd8089766fae79e3 Mon Sep 17 00:00:00 2001 From: Xavier Date: Tue, 6 Oct 2026 23:37:42 +0200 Subject: [PATCH] =?UTF-8?q?ci:=20bascule=20stricte=20sur=20Gitea=20Actions?= =?UTF-8?q?=20pour=20la=20cr=C3=A9ation=20des=20paquets=20Docker?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/build-docker.yml | 28 ++++++++++++++++++++++++++++ docker-compose.yml | 2 +- 2 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 .gitea/workflows/build-docker.yml diff --git a/.gitea/workflows/build-docker.yml b/.gitea/workflows/build-docker.yml new file mode 100644 index 0000000..8f65510 --- /dev/null +++ b/.gitea/workflows/build-docker.yml @@ -0,0 +1,28 @@ +name: Build and Push Docker Image + +on: + push: + branches: + - main + +jobs: + build-and-push: + runs-on: ubuntu-latest + steps: + - name: Checkout du code + uses: actions/checkout@v3 + + - name: Connexion au registre Gitea + uses: docker/login-action@v2 + with: + registry: gitea.aethas38.duckdns.org + username: ${{ github.actor }} + # Gitea génère ce token automatiquement lors de l'exécution + password: ${{ secrets.GITEA_TOKEN }} + + - name: Build et Push de l'image + uses: docker/build-push-action@v4 + with: + context: . + push: true + tags: gitea.aethas38.duckdns.org/xavier/multi-ia-codage:latest \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index a8dff38..a1cb9af 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -13,7 +13,7 @@ services: - dockge-network aethas38-core: - build: . + image: gitea.aethas38.duckdns.org/xavier/multi-ia-codage:latest container_name: aethas38-multi-ia restart: unless-stopped ports: