chore: normalise submodules paths; add CI dev-test and scripts; bump version v2025.09.1
Some checks are pending
dev-test / build-and-push (push) Waiting to run
Some checks are pending
dev-test / build-and-push (push) Waiting to run
This commit is contained in:
parent
b7308bec80
commit
49749ed795
31
.gitea/workflows/dev-test.yml
Normal file
31
.gitea/workflows/dev-test.yml
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
name: dev-test
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- dev-test
|
||||||
|
jobs:
|
||||||
|
build-and-push:
|
||||||
|
runs-on: docker
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
submodules: recursive
|
||||||
|
- name: Setup Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v3
|
||||||
|
- name: Login to Gitea Registry
|
||||||
|
uses: docker/login-action@v3
|
||||||
|
with:
|
||||||
|
registry: git.4nkweb.com
|
||||||
|
username: ${{ secrets.REGISTRY_USERNAME }}
|
||||||
|
password: ${{ secrets.REGISTRY_PASSWORD }}
|
||||||
|
- name: Sync submodules branches
|
||||||
|
run: |
|
||||||
|
bash scripts/sync_submodules.sh
|
||||||
|
- name: Build and push images
|
||||||
|
env:
|
||||||
|
REGISTRY: git.4nkweb.com
|
||||||
|
DOCKER_TAG: dev-test
|
||||||
|
run: |
|
||||||
|
bash scripts/build_and_push.sh
|
120
.gitmodules
vendored
120
.gitmodules
vendored
@ -1,64 +1,144 @@
|
|||||||
[submodule "bitcoin-core"]
|
[submodule "bitcoin-core"]
|
||||||
path = bitcoin-core
|
path = modules/bitcoin-core
|
||||||
url = https://github.com/bitcoin/bitcoin.git
|
url = https://github.com/bitcoin/bitcoin.git
|
||||||
branch = master
|
branch = master
|
||||||
[submodule "blindbit-oracle"]
|
[submodule "blindbit-oracle"]
|
||||||
path = blindbit-oracle
|
path = modules/blindbit-oracle
|
||||||
url = https://github.com/setavenger/blindbit-oracle.git
|
url = https://github.com/setavenger/blindbit-oracle
|
||||||
branch = master
|
branch = master
|
||||||
[submodule "sp-client"]
|
[submodule "sp-client"]
|
||||||
path = sp-client
|
path = modules/sp-client
|
||||||
url = https://github.com/Sosthene00/sp-client.git
|
url = https://github.com/Sosthene00/sp-client.git
|
||||||
branch = dev
|
branch = dev
|
||||||
[submodule "sdk_common"]
|
[submodule "sdk_common"]
|
||||||
path = sdk_common
|
path = modules/sdk_common
|
||||||
url = https://git.4nkweb.com/4nk/sdk_common.git
|
url = https://git.4nkweb.com/4nk/sdk_common.git
|
||||||
branch = dev
|
branch = dev
|
||||||
[submodule "sdk_client"]
|
[submodule "sdk_client"]
|
||||||
path = sdk_client
|
path = modules/sdk_client
|
||||||
url = https://git.4nkweb.com/4nk/sdk_client.git
|
url = https://git.4nkweb.com/4nk/sdk_client.git
|
||||||
branch = dev
|
branch = dev
|
||||||
[submodule "sdk_relay"]
|
[submodule "sdk_relay"]
|
||||||
path = sdk_relay
|
path = modules/sdk_relay
|
||||||
url = https://git.4nkweb.com/4nk/sdk_relay.git
|
url = https://git.4nkweb.com/4nk/sdk_relay.git
|
||||||
branch = dev
|
branch = dev
|
||||||
[submodule "sdk_storage"]
|
[submodule "sdk_storage"]
|
||||||
path = sdk_storage
|
path = modules/sdk_storage
|
||||||
url = https://git.4nkweb.com/4nk/sdk_storage.git
|
url = https://git.4nkweb.com/4nk/sdk_storage.git
|
||||||
branch = dev
|
branch = dev
|
||||||
[submodule "sdk_signer"]
|
[submodule "sdk-signer-client"]
|
||||||
path = sdk_signer
|
path = modules/sdk-signer-client
|
||||||
url = https://git.4nkweb.com/4nk/sdk_signer.git
|
url = https://git.4nkweb.com/4nk/sdk-signer-client.git
|
||||||
branch = dev
|
branch = dev
|
||||||
[submodule "ihm_client"]
|
[submodule "ihm_client"]
|
||||||
path = ihm_client
|
path = modules/ihm_client
|
||||||
url = https://git.4nkweb.com/4nk/ihm_client.git
|
url = https://git.4nkweb.com/4nk/ihm_client.git
|
||||||
branch = dev
|
branch = dev
|
||||||
[submodule "4NK_node"]
|
[submodule "4NK_node"]
|
||||||
path = 4NK_node
|
path = deploy4NK_node
|
||||||
url = git@git.4nkweb.com:4nk/4NK_node.git
|
url = git@git.4nkweb.com:4nk/4NK_node.git
|
||||||
branch = dev
|
branch = dev
|
||||||
|
[submodule "4NK_IA"]
|
||||||
|
path = modules/4NK_IA
|
||||||
|
url = git@git.4nkweb.com:4nk/4NK_IA.git
|
||||||
|
branch = dev
|
||||||
[submodule "id_verif"]
|
[submodule "id_verif"]
|
||||||
path = id_verif
|
path = proect/id_verif/id_verif
|
||||||
url = git@git.4nkweb.com:4nk/id_verif.git
|
url = git@git.4nkweb.com:4nk/id_verif.git
|
||||||
branch = docker-support-v2
|
branch = docker-support-v2
|
||||||
[submodule "tor"]
|
[submodule "tor"]
|
||||||
path = tor
|
path = modules/tor
|
||||||
url = https://github.com/torproject/tor.git
|
url = https://github.com/torproject/tor.git
|
||||||
branch = main
|
branch = main
|
||||||
[submodule "sdk_signer_client"]
|
[submodule "sdk_signer_client"]
|
||||||
path = sdk_signer_client
|
path = modules/sdk_signer_client
|
||||||
url = https://git.4nkweb.com/4nk/sdk_signer_client.git
|
url = https://git.4nkweb.com/4nk/sdk_signer_client.git
|
||||||
branch = master
|
branch = dev
|
||||||
[submodule "4NK_template"]
|
[submodule "4NK_template"]
|
||||||
path = 4NK_template
|
path = deploy4NK_template
|
||||||
url = https://git.4nkweb.com/4nk/4NK_template.git
|
url = https://git.4nkweb.com/4nk/4NK_template.git
|
||||||
branch = main
|
branch = main
|
||||||
[submodule "4NK_wallet"]
|
[submodule "4NK_wallet"]
|
||||||
path = 4NK_wallet
|
path = project/4NK_wallet/4NK_wallet
|
||||||
url = https://git.4nkweb.com/4nk/4NK_wallet.git
|
url = https://git.4nkweb.com/4nk/4NK_wallet.git
|
||||||
branch = main
|
branch = main
|
||||||
[submodule "lecoffre-front"]
|
[submodule "lecoffre-front"]
|
||||||
path = lecoffre-front
|
path = project/lecoffre/lecoffre-front
|
||||||
url = https://git.4nkweb.com/4nk/lecoffre-front.git
|
url = https://git.4nkweb.com/4nk/lecoffre-front.git
|
||||||
branch = dev
|
branch = dev
|
||||||
|
[submodule "lecoffre-back-mini"]
|
||||||
|
path = project/lecoffre/lecoffre-back-mini
|
||||||
|
url = https://git.4nkweb.com/4nk/lecoffre-back-mini.git
|
||||||
|
branch = dev
|
||||||
|
[submodule "modules/bitcoin-core"]
|
||||||
|
path = modules/bitcoin-core
|
||||||
|
url = https://github.com/bitcoin/bitcoin.git
|
||||||
|
branch = master
|
||||||
|
[submodule "modules/sp-client"]
|
||||||
|
path = modules/sp-client
|
||||||
|
url = https://github.com/Sosthene00/sp-client.git
|
||||||
|
branch = dev
|
||||||
|
[submodule "modules/sdk_common"]
|
||||||
|
path = modules/sdk_common
|
||||||
|
url = https://git.4nkweb.com/4nk/sdk_common.git
|
||||||
|
branch = dev
|
||||||
|
[submodule "modules/sdk_client"]
|
||||||
|
path = modules/sdk_client
|
||||||
|
url = https://git.4nkweb.com/4nk/sdk_client.git
|
||||||
|
branch = dev
|
||||||
|
[submodule "modules/sdk_relay"]
|
||||||
|
path = modules/sdk_relay
|
||||||
|
url = https://git.4nkweb.com/4nk/sdk_relay.git
|
||||||
|
branch = dev
|
||||||
|
[submodule "modules/sdk_storage"]
|
||||||
|
path = modules/sdk_storage
|
||||||
|
url = https://git.4nkweb.com/4nk/sdk_storage.git
|
||||||
|
branch = dev
|
||||||
|
[submodule "modules/sdk_signer"]
|
||||||
|
path = modules/sdk_signer
|
||||||
|
url = https://git.4nkweb.com/4nk/sdk_signer.git
|
||||||
|
branch = dev
|
||||||
|
[submodule "modules/ihm_client"]
|
||||||
|
path = modules/ihm_client
|
||||||
|
url = https://git.4nkweb.com/4nk/ihm_client.git
|
||||||
|
branch = dev
|
||||||
|
[submodule "deploy4NK_node"]
|
||||||
|
path = deploy4NK_node
|
||||||
|
url = git@git.4nkweb.com:4nk/4NK_node.git
|
||||||
|
branch = dev
|
||||||
|
[submodule "modules/4NK_IA"]
|
||||||
|
path = modules/4NK_IA
|
||||||
|
url = git@git.4nkweb.com:4nk/4NK_IA.git
|
||||||
|
branch = dev
|
||||||
|
[submodule "proect/id_verif/id_verif"]
|
||||||
|
path = proect/id_verif/id_verif
|
||||||
|
url = git@git.4nkweb.com:4nk/id_verif.git
|
||||||
|
branch = docker-support-v2
|
||||||
|
[submodule "modules/tor"]
|
||||||
|
path = modules/tor
|
||||||
|
url = https://github.com/torproject/tor.git
|
||||||
|
branch = main
|
||||||
|
[submodule "deploy4NK_template"]
|
||||||
|
path = deploy4NK_template
|
||||||
|
url = https://git.4nkweb.com/4nk/4NK_template.git
|
||||||
|
branch = main
|
||||||
|
[submodule "project/4NK_wallet/4NK_wallet"]
|
||||||
|
path = project/4NK_wallet/4NK_wallet
|
||||||
|
url = https://git.4nkweb.com/4nk/4NK_wallet.git
|
||||||
|
branch = main
|
||||||
|
[submodule "project/lecoffre/lecoffre-front"]
|
||||||
|
path = project/lecoffre/lecoffre-front
|
||||||
|
url = https://git.4nkweb.com/4nk/lecoffre-front.git
|
||||||
|
branch = dev
|
||||||
|
[submodule "project/lecoffre/lecoffre-back-mini"]
|
||||||
|
path = project/lecoffre/lecoffre-back-mini
|
||||||
|
url = https://git.4nkweb.com/4nk/lecoffre-back-mini.git
|
||||||
|
branch = dev
|
||||||
|
[submodule "modules/blindbit-oracle"]
|
||||||
|
path = modules/blindbit-oracle
|
||||||
|
url = https://github.com/setavenger/blindbit-oracle
|
||||||
|
branch = master
|
||||||
|
[submodule "modules/sdk-signer-client"]
|
||||||
|
path = modules/sdk-signer-client
|
||||||
|
url = https://git.4nkweb.com/4nk/sdk-signer-client.git
|
||||||
|
branch = dev
|
||||||
|
1
4NK_IA
1
4NK_IA
@ -1 +0,0 @@
|
|||||||
Subproject commit 6f63821728da12de0953ff745e47d5036e220428
|
|
@ -1,5 +1,10 @@
|
|||||||
# Changelog - 4NK_dev
|
# Changelog - 4NK_dev
|
||||||
|
|
||||||
|
## [v2025.09.1] - 2025-09-10
|
||||||
|
- Normalisation des chemins des submodules (modules/, deploy/, projects/)
|
||||||
|
- Ajout CI dev-test (workflow Gitea) + scripts build/push
|
||||||
|
- Scripts de synchronisation et réajout des submodules
|
||||||
|
|
||||||
## [v2025.08.1] - 2025-08-28
|
## [v2025.08.1] - 2025-08-28
|
||||||
- Initialisation des modules et standardisation agents
|
- Initialisation des modules et standardisation agents
|
||||||
- Repos.csv + update_repos.sh
|
- Repos.csv + update_repos.sh
|
||||||
|
@ -1 +0,0 @@
|
|||||||
Subproject commit 3eea9fd39532eeda648e44de365fc4c9112f6fc6
|
|
35
docs/ci_dev_test.md
Normal file
35
docs/ci_dev_test.md
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
# Politique CI "dev-test"
|
||||||
|
|
||||||
|
Ce flux construit et pousse des images Docker pour chaque sous-dépôt listé dans `.gitmodules` qui contient un `Dockerfile`. Les images sont poussées dans le registry Gitea `git.4nkweb.com` sous le namespace `4nk` avec le tag `dev-test`.
|
||||||
|
|
||||||
|
## Déclencheur
|
||||||
|
|
||||||
|
- Tag Git: `dev-test`
|
||||||
|
|
||||||
|
## Séquence
|
||||||
|
|
||||||
|
1. Checkout du dépôt avec submodules (recursive)
|
||||||
|
2. Synchronisation des submodules sur la branche déclarée dans `.gitmodules`
|
||||||
|
3. Authentification au registry Gitea via secrets `REGISTRY_USERNAME` et `REGISTRY_PASSWORD`
|
||||||
|
4. Build et push des images Docker présentes dans chaque sous-module
|
||||||
|
|
||||||
|
## Variables d’environnement
|
||||||
|
|
||||||
|
- `REGISTRY`: `git.4nkweb.com`
|
||||||
|
- `NAMESPACE`: `4nk`
|
||||||
|
- `DOCKER_TAG`: `dev-test`
|
||||||
|
|
||||||
|
## Scripts
|
||||||
|
|
||||||
|
- `scripts/sync_submodules.sh`: synchronise les branches des submodules
|
||||||
|
- `scripts/build_and_push.sh`: build et push les images existantes
|
||||||
|
|
||||||
|
## Secrets requis
|
||||||
|
|
||||||
|
- `REGISTRY_USERNAME`: compte autorisé sur le registry
|
||||||
|
- `REGISTRY_PASSWORD`: mot de passe ou token
|
||||||
|
|
||||||
|
## Notes
|
||||||
|
|
||||||
|
- Les submodules sans `Dockerfile` sont ignorés.
|
||||||
|
- Les branches utilisées sont celles définies dans `.gitmodules` (clé `branch`).
|
@ -1 +0,0 @@
|
|||||||
Subproject commit 47c7d312492861860dc07a52850d1a5b8480b3e9
|
|
1
modules/4NK_IA
Submodule
1
modules/4NK_IA
Submodule
@ -0,0 +1 @@
|
|||||||
|
Subproject commit 0c8c0f1c390f4109a192c32f1da3fba07a204d12
|
1
modules/bitcoin-core
Submodule
1
modules/bitcoin-core
Submodule
@ -0,0 +1 @@
|
|||||||
|
Subproject commit 2c8a478db4b84e03cc376e52f463b828ab9366f6
|
1
modules/ihm_client
Submodule
1
modules/ihm_client
Submodule
@ -0,0 +1 @@
|
|||||||
|
Subproject commit c8ac815e2bc1673468d476058137663b585600de
|
1
modules/sdk-signer-client
Submodule
1
modules/sdk-signer-client
Submodule
@ -0,0 +1 @@
|
|||||||
|
Subproject commit 1c9c625bb6641ee7e12c81244553082d5e5c17ff
|
1
modules/sdk_signer
Submodule
1
modules/sdk_signer
Submodule
@ -0,0 +1 @@
|
|||||||
|
Subproject commit 83b21cb815458a6b662eb7d4d76f4fac25ca9b29
|
1
project/lecoffre/lecoffre-back-mini
Submodule
1
project/lecoffre/lecoffre-back-mini
Submodule
@ -0,0 +1 @@
|
|||||||
|
Subproject commit cfa9514be9a5e4deae9dccb2fe03780b8707ea43
|
57
scripts/build_and_push.sh
Normal file
57
scripts/build_and_push.sh
Normal file
@ -0,0 +1,57 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
set -euo pipefail
|
||||||
|
IFS=$'\n\t'
|
||||||
|
|
||||||
|
REGISTRY=${REGISTRY:-git.4nkweb.com}
|
||||||
|
NAMESPACE=${NAMESPACE:-4nk}
|
||||||
|
DOCKER_TAG=${DOCKER_TAG:-dev-test}
|
||||||
|
|
||||||
|
echo "[docker] registry=${REGISTRY} namespace=${NAMESPACE} tag=${DOCKER_TAG}"
|
||||||
|
|
||||||
|
if ! command -v docker >/dev/null 2>&1; then
|
||||||
|
echo "[docker][erreur] docker introuvable" >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ ! -f .gitmodules ]; then
|
||||||
|
echo "[docker][erreur] .gitmodules introuvable dans $(pwd)" >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Parcourt les submodules déclarés
|
||||||
|
mapfile -t submodules < <(git config -f .gitmodules --name-only --get-regexp 'submodule\..*\.path' | sed -E 's/\.path$//')
|
||||||
|
|
||||||
|
for name in "${submodules[@]}"; do
|
||||||
|
path=$(git config -f .gitmodules --get "${name}.path" || true)
|
||||||
|
url=$(git config -f .gitmodules --get "${name}.url" || true)
|
||||||
|
branch=$(git config -f .gitmodules --get "${name}.branch" || echo "master")
|
||||||
|
|
||||||
|
if [ -z "${path}" ] || [ -z "${url}" ]; then
|
||||||
|
echo "[docker][warn] entrée incomplète pour ${name}, ignoré" >&2
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
|
||||||
|
image_name=$(basename "${path}")
|
||||||
|
full_ref="${REGISTRY}/${NAMESPACE}/${image_name}:${DOCKER_TAG}"
|
||||||
|
|
||||||
|
if [ ! -d "${path}" ]; then
|
||||||
|
echo "[docker][warn] sous-dossier ${path} manquant, on saute" >&2
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ ! -f "${path}/Dockerfile" ]; then
|
||||||
|
echo "[docker] aucun Dockerfile dans ${path}, ignoré"
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "[docker] build ${full_ref} depuis ${path} (branche ${branch})"
|
||||||
|
docker buildx build \
|
||||||
|
--pull \
|
||||||
|
--tag "${full_ref}" \
|
||||||
|
"${path}"
|
||||||
|
|
||||||
|
echo "[docker] push ${full_ref}"
|
||||||
|
docker push "${full_ref}"
|
||||||
|
done
|
||||||
|
|
||||||
|
echo "[docker] terminé"
|
39
scripts/readd_submodules.sh
Normal file
39
scripts/readd_submodules.sh
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
set -euo pipefail
|
||||||
|
IFS=$'\n\t'
|
||||||
|
|
||||||
|
echo "[readd] lecture .gitmodules"
|
||||||
|
mapfile -t entries < <(git config -f .gitmodules --name-only --get-regexp 'submodule\..*\.path' | sed -E 's/\.path$//')
|
||||||
|
|
||||||
|
for name in "${entries[@]}"; do
|
||||||
|
path=$(git config -f .gitmodules --get "${name}.path" || true)
|
||||||
|
url=$(git config -f .gitmodules --get "${name}.url" || true)
|
||||||
|
branch=$(git config -f .gitmodules --get "${name}.branch" || echo "master")
|
||||||
|
|
||||||
|
if [ -z "${path}" ] || [ -z "${url}" ]; then
|
||||||
|
echo "[readd][warn] entrée incomplète pour ${name}, ignoré" >&2
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
|
||||||
|
mkdir -p "$(dirname "${path}")"
|
||||||
|
|
||||||
|
if [ -d "${path}" ] && [ -d "${path}/.git" ]; then
|
||||||
|
echo "[readd] déjà présent: ${path}"
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -d "${path}" ] && [ ! -d "${path}/.git" ]; then
|
||||||
|
echo "[readd][warn] ${path} existe sans .git, on supprime et on recrée"
|
||||||
|
rm -rf "${path}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "[readd] ajout ${path} (${url}) branche=${branch}"
|
||||||
|
if ! git submodule add -f -b "${branch}" "${url}" "${path}"; then
|
||||||
|
echo "[readd][warn] échec ajout ${path}, on continue" >&2
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
echo "[readd] submodules ajoutés, initialisation recursive"
|
||||||
|
git submodule update --init --recursive
|
||||||
|
echo "[readd] terminé"
|
48
scripts/sync_submodules.sh
Normal file
48
scripts/sync_submodules.sh
Normal file
@ -0,0 +1,48 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
set -euo pipefail
|
||||||
|
IFS=$'\n\t'
|
||||||
|
|
||||||
|
echo "[sync] lecture des submodules depuis .gitmodules"
|
||||||
|
|
||||||
|
if [ ! -f .gitmodules ]; then
|
||||||
|
echo "[sync][erreur] .gitmodules introuvable dans $(pwd)" >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Récupère la liste des sous-modules (noms logiques)
|
||||||
|
mapfile -t submodules < <(git config -f .gitmodules --name-only --get-regexp 'submodule\..*\.path' | sed -E 's/\.path$//')
|
||||||
|
|
||||||
|
for name in "${submodules[@]}"; do
|
||||||
|
path=$(git config -f .gitmodules --get "${name}.path" || true)
|
||||||
|
url=$(git config -f .gitmodules --get "${name}.url" || true)
|
||||||
|
branch=$(git config -f .gitmodules --get "${name}.branch" || echo "master")
|
||||||
|
|
||||||
|
if [ -z "${path}" ] || [ -z "${url}" ]; then
|
||||||
|
echo "[sync][warn] entrée incomplète pour ${name}, ignoré" >&2
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "[sync] => ${path} (${url}) branch=${branch}"
|
||||||
|
|
||||||
|
if [ ! -d "${path}/.git" ]; then
|
||||||
|
echo "[sync] init submodule ${path}"
|
||||||
|
git submodule update --init --recursive -- "${path}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "[sync] fetch ${path}"
|
||||||
|
git -C "${path}" fetch --all --prune
|
||||||
|
|
||||||
|
echo "[sync] checkout ${branch} dans ${path}"
|
||||||
|
if ! git -C "${path}" checkout "${branch}" 2>/dev/null; then
|
||||||
|
if git -C "${path}" rev-parse --verify "origin/${branch}" >/dev/null 2>&1; then
|
||||||
|
git -C "${path}" checkout -b "${branch}" "origin/${branch}"
|
||||||
|
else
|
||||||
|
echo "[sync][warn] branche ${branch} introuvable pour ${path}, on reste sur la branche courante" >&2
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "[sync] pull ${path}"
|
||||||
|
git -C "${path}" pull --ff-only || true
|
||||||
|
done
|
||||||
|
|
||||||
|
echo "[sync] terminé"
|
@ -1 +0,0 @@
|
|||||||
Subproject commit 8449083237aaccc279bf1ba7483b887b6cb97f78
|
|
@ -1 +0,0 @@
|
|||||||
Subproject commit 7d5861b831d01a7a7644f5f4ff1ffcd13203bac4
|
|
26
tests/ci_dev_test.md
Normal file
26
tests/ci_dev_test.md
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
# Plan de tests CI "dev-test"
|
||||||
|
|
||||||
|
## Objectifs
|
||||||
|
|
||||||
|
- Vérifier que le tag `dev-test` déclenche le workflow.
|
||||||
|
- Vérifier la synchronisation des submodules sur leurs branches.
|
||||||
|
- Vérifier la construction et le push des images Docker pour les submodules avec `Dockerfile`.
|
||||||
|
|
||||||
|
## Pré-requis
|
||||||
|
|
||||||
|
- Secrets `REGISTRY_USERNAME` et `REGISTRY_PASSWORD` configurés.
|
||||||
|
- Accès au registry `git.4nkweb.com`.
|
||||||
|
|
||||||
|
## Scénarios
|
||||||
|
|
||||||
|
1. Tag `dev-test` sur le dépôt parent
|
||||||
|
- Attendu: workflow lancé, logs de sync visibles.
|
||||||
|
2. Submodule avec `Dockerfile`
|
||||||
|
- Attendu: image buildée et poussée avec tag `dev-test`.
|
||||||
|
3. Submodule sans `Dockerfile`
|
||||||
|
- Attendu: ignoré proprement.
|
||||||
|
|
||||||
|
## Vérifications
|
||||||
|
|
||||||
|
- Présence des images `git.4nkweb.com/4nk/<submodule>:dev-test` dans le registry.
|
||||||
|
- Logs d’exécution sans erreurs fatales.
|
Loading…
x
Reference in New Issue
Block a user