From 747344ce36fc2aff97a13609b264a6700f719c11 Mon Sep 17 00:00:00 2001 From: Nicolas Caron Date: Wed, 13 Mar 2024 15:07:27 +0100 Subject: [PATCH] test workflow build and push on gitea registry --- .github/workflows/build.yml | 25 +++++++++++++++++++------ 1 file changed, 19 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 525a9a5..0d5b0e1 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -10,7 +10,6 @@ jobs: checkout_repository: runs-on: ubuntu-latest - steps: - name: Checkout repository uses: actions/checkout@v3 @@ -27,10 +26,26 @@ jobs: username: ncaron password: 6744954b4a3a43422e62e8d110f90de527ce094d + clone_repository: + runs-on: ubuntu-latest + container: + image: alpine/git:latest + volumes: + - /tmp:/tmp + + steps: + - name: Clone repository + run: | + cd /tmp + git clone -b dev --depth 1 https://ncaron:6744954b4a3a43422e62e8d110f90de527ce094d@git.coopgo.io/coopgo-platform/mobility-accounts.git . + build_and_push_image: runs-on: ubuntu-latest - container: docker:20.10.7 - needs: checkout_repository + container: + image: docker:20.10.7 + volumes: + - /tmp:/tmp + needs: clone_repository steps: # - name: Run Docker @@ -55,9 +70,6 @@ jobs: # run: | # echo "Latest tag found: ${{ steps.get_tags.outputs.latest_tag }}" - # - name: Clone repository - # run: | - # git clone -b dev --depth 1 https://ncaron:6744954b4a3a43422e62e8d110f90de527ce094d@git.coopgo.io/coopgo-platform/mobility-accounts.git . # - name: Check Docker version # run: | @@ -66,6 +78,7 @@ jobs: - name: Check folder run: | + cd /tmp ls -la - name: Build and Push Docker Image