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