This commit is contained in:
parent
42e79e5698
commit
1d1f21be74
@ -1,5 +1,4 @@
|
|||||||
name: dev
|
name: dev
|
||||||
on:
|
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- '*'
|
- '*'
|
||||||
@ -34,42 +33,9 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
git submodule sync --recursive
|
git submodule sync --recursive
|
||||||
git submodule update --init --recursive
|
git submodule update --init --recursive
|
||||||
- name: Debug workspace
|
|
||||||
run: |
|
|
||||||
pwd
|
|
||||||
ls -la
|
|
||||||
git rev-parse --abbrev-ref HEAD || true
|
|
||||||
if [ -f .gitmodules ]; then echo ".gitmodules present"; cat .gitmodules; else echo "NO .gitmodules"; fi
|
|
||||||
git submodule status || true
|
|
||||||
- name: Docker info
|
|
||||||
run: |
|
|
||||||
which docker || true
|
|
||||||
if ! command -v docker >/dev/null 2>&1; then
|
|
||||||
echo "Docker n'est pas disponible sur ce runner (ubuntu-latest)." >&2
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
docker version
|
|
||||||
docker info
|
|
||||||
- name: Build and push images
|
- name: Build and push images
|
||||||
env:
|
env:
|
||||||
REGISTRY: git.4nkweb.com
|
REGISTRY: git.4nkweb.com
|
||||||
run: |
|
run: |
|
||||||
DOCKER_TAG=$(git rev-parse --abbrev-ref HEAD)
|
DOCKER_TAG=$(git rev-parse --abbrev-ref HEAD)
|
||||||
bash scripts/build_and_push.sh "$DOCKER_TAG"
|
bash scripts/build_and_push.sh "$DOCKER_TAG"
|
||||||
- name: Show logs summary
|
|
||||||
if: always()
|
|
||||||
run: |
|
|
||||||
DOCKER_TAG=$(git rev-parse --abbrev-ref HEAD)
|
|
||||||
if [ -f "log/ci/${DOCKER_TAG}/summary.txt" ]; then
|
|
||||||
echo "=== Summary for ${DOCKER_TAG} ==="
|
|
||||||
cat "log/ci/${DOCKER_TAG}/summary.txt"
|
|
||||||
else
|
|
||||||
echo "No summary found for ${DOCKER_TAG}"
|
|
||||||
fi
|
|
||||||
- name: Upload logs artifact
|
|
||||||
if: always()
|
|
||||||
uses: actions/upload-artifact@v4
|
|
||||||
with:
|
|
||||||
name: ci-logs-${{ github.ref_name || 'branch' }}
|
|
||||||
path: log/ci/**
|
|
||||||
if-no-files-found: ignore
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user