From 1a283360aa09c7d42f0208ab603867883751119d Mon Sep 17 00:00:00 2001 From: Nicolas Caron Date: Wed, 13 Mar 2024 12:40:02 +0100 Subject: [PATCH] test workflow build and push on gitea registry --- .github/workflows/build.yml | 32 ++++++++++++++++++-------------- 1 file changed, 18 insertions(+), 14 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4f84015..48e26b0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -27,8 +27,26 @@ jobs: username: ncaron password: 6744954b4a3a43422e62e8d110f90de527ce094d + prepare_environment: + runs-on: ubuntu-latest + + steps: + - name: Install dependencies + run: | + apt update + apt install -y git + + - name: Clone repository + run: | + git clone -b dev --depth 1 https://ncaron:6744954b4a3a43422e62e8d110f90de527ce094d@git.coopgo.io/coopgo-platform/mobility-accounts.git . + + - name: Check folder + run: | + ls -la + build_and_push_image: runs-on: ubuntu-latest + container: docker:latest steps: # - name: Run Docker @@ -53,20 +71,6 @@ jobs: # run: | # echo "Latest tag found: ${{ steps.get_tags.outputs.latest_tag }}" - - name: Install Docker - run: | - apt update - apt install -y docker.io - - - name: Install dependencies - run: | - apt update - apt install -y git - - - name: Clone repository - run: | - git clone -b dev --depth 1 https://ncaron:6744954b4a3a43422e62e8d110f90de527ce094d@git.coopgo.io/coopgo-platform/mobility-accounts.git . - - name: Check folder run: | ls -la