test workflow build and push on gitea registry
Build and Push Docker Image / checkout_repository (push) Successful in 6s Details
Build and Push Docker Image / login_docker_registry (push) Successful in 6s Details
Build and Push Docker Image / clone_repository (push) Successful in 7s Details
Build and Push Docker Image / build_and_push_image (push) Failing after 5s Details

This commit is contained in:
Nicolas CARON 2024-03-13 15:07:27 +01:00
parent 10039d1b4c
commit 747344ce36
1 changed files with 19 additions and 6 deletions

View File

@ -10,7 +10,6 @@ jobs:
checkout_repository: checkout_repository:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v3 uses: actions/checkout@v3
@ -27,10 +26,26 @@ jobs:
username: ncaron username: ncaron
password: 6744954b4a3a43422e62e8d110f90de527ce094d 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: build_and_push_image:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: docker:20.10.7 container:
needs: checkout_repository image: docker:20.10.7
volumes:
- /tmp:/tmp
needs: clone_repository
steps: steps:
# - name: Run Docker # - name: Run Docker
@ -55,9 +70,6 @@ jobs:
# run: | # run: |
# echo "Latest tag found: ${{ steps.get_tags.outputs.latest_tag }}" # 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 # - name: Check Docker version
# run: | # run: |
@ -66,6 +78,7 @@ jobs:
- name: Check folder - name: Check folder
run: | run: |
cd /tmp
ls -la ls -la
- name: Build and Push Docker Image - name: Build and Push Docker Image