From b908fbf9fa82c662e2f19f999445e4de18894865 Mon Sep 17 00:00:00 2001 From: Topin2001 Date: Thu, 2 May 2024 15:46:44 +0200 Subject: [PATCH] Improve CI test --- .github/workflows/ci.yml | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d394953..795332d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -64,23 +64,8 @@ jobs: # Run the tests (with the appropriate server image) - name: Test docker image run: | - echo "Retrieving the branch name..." - if [ "${{ github.event_name }}" = "push" ] - then - branch=${{ github.ref }} - branch=${branch#*/} - branch=${branch#*/} - else # PR - branch=${{ github.head_ref }} - fi - echo "Cloning the server repo on branch $branch..." - if ! git clone https://github.com/cnescatlab/sonarqube.git -b "$branch" tmpserver; - then - echo "No branch $branch found on the server repository, using develop" - git clone https://github.com/cnescatlab/sonarqube.git -b develop tmpserver - fi - echo "Building the server image..." - docker build -t lequal/sonarqube:latest tmpserver/ + echo "Retrieving the sonarqube image..." + docker pull lequal/sonarqube-catlab:latest echo "Testing the scanner image..." echo -e "Results of the CI pipeline\n" > tests_logs.txt cd tests/