From feb660d55f76db0d51e663fefcc0c8ecc39c9909 Mon Sep 17 00:00:00 2001 From: Leon Date: Thu, 12 Mar 2026 14:18:11 +0100 Subject: [PATCH] pipeline --- .gitea/workflows/deploy.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 3c5326e..40764ad 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -6,6 +6,7 @@ on: pull_request: branches: [ "main" ] + jobs: test: name: "Tests Unitaires" @@ -43,7 +44,7 @@ jobs: uses: actions/docker/login@v2 with: # Remplacez par l'URL de votre registry Gitea (ex: gitea.votre-domaine.com) - registry: ${{ github.server_url }} + registry: ${{ github.server_url }} username: ${{ github.actor }} password: ${{ secrets.GITEA_TOKEN }} @@ -52,7 +53,7 @@ jobs: IMAGE_NAME="${{ github.repository }}" # Format: user/repo REGISTRY_URL=$(echo "${{ github.server_url }}" | sed -e 's|https://||') FULL_IMAGE_NAME="$REGISTRY_URL/$IMAGE_NAME" - + docker build -t "$FULL_IMAGE_NAME:${{ github.sha }}" -t "$FULL_IMAGE_NAME:latest" . docker push "$FULL_IMAGE_NAME:${{ github.sha }}" docker push "$FULL_IMAGE_NAME:latest"