Compare commits
34 Commits
v0.0.10-ge
...
v.0.2.3-ge
Author | SHA1 | Date | |
---|---|---|---|
adaadd2792 | |||
0624663de2 | |||
b3ca6d0ee0 | |||
745f7a8537 | |||
d0a6791cad | |||
e113c968e8 | |||
5b1d78f9ff | |||
1dfe133ed7 | |||
d7115b7ffb | |||
66c8cdf08e | |||
c06fca73e5 | |||
ec5ced5f1e | |||
2125919329 | |||
62e1e0435b | |||
167dce745b | |||
6caa30b4be | |||
3b392f1f69 | |||
1fb8100c32 | |||
367408b5fe | |||
5aa0c87fdc | |||
c5e8cf8b5b | |||
8a910ca493 | |||
676d26a64d | |||
0510ef607d | |||
74bc3f71c4 | |||
1bd5ffafa9 | |||
f6dfa00f97 | |||
f921870fe6 | |||
f8fcb95601 | |||
163d690e81 | |||
d1d177dd38 | |||
a6be4fc26b | |||
727d25a1af | |||
bcbd0ae9ef |
@ -1,5 +1,6 @@
|
||||
Dépôt de fichiers personnels provenant de machines virtuelles utilisées en TP.
|
||||
# siotp
|
||||
|
||||
Dépôt de fichiers personnels provenant de machines virtuelles utilisées en TP.
|
||||
Ce Gitea contient aussi un script d'automatisation du processus de push et de pull, adaptés aux deux branches.
|
||||
|
||||
Dépôt anciennement privé, devenu public le 16 Septembre 2024.
|
||||
*Dépôt anciennement privé, devenu public le 16 Septembre 2024.*
|
68
automate.sh
68
automate.sh
@ -11,52 +11,24 @@ export https_proxy="http://10.121.38.1:8080/"
|
||||
echo "Voulez-vous récupérer les fichiers du dépôt ou effectuer un push sur le dépôt ? [1 = Pull, 2 = Push]"
|
||||
read answer
|
||||
|
||||
echo "Quelle branche est concernée ? [1 = main, 2 = test]"
|
||||
read branch
|
||||
|
||||
if [ $branch == 1 ] ; then
|
||||
if [ $answer == 1 ] ; then
|
||||
git checkout main
|
||||
echo "Récupération des fichiers à jour, branche main..."
|
||||
git pull -q origin main
|
||||
else
|
||||
git checkout main
|
||||
echo "Ajout des fichiers au Gitea..."
|
||||
sleep 1
|
||||
git add .
|
||||
echo "Commit en cours..."
|
||||
sleep 1
|
||||
git commit
|
||||
echo "Entrez la version du tag:"
|
||||
read tag
|
||||
git tag $tag
|
||||
echo "Push des fichiers au Gitea, branche main..."
|
||||
sleep 1
|
||||
git push -q origin main --tag
|
||||
fi
|
||||
|
||||
elif [ $branch == 2 ] ; then
|
||||
if [ $answer == 1 ] ; then
|
||||
git checkout test
|
||||
echo "Récupération des fichiers à jour dans la branche test..."
|
||||
git pull -q origin test
|
||||
else
|
||||
git checkout test
|
||||
echo "Ajout des fichiers au Gitea, branche test..."
|
||||
sleep 1
|
||||
git add .
|
||||
echo "Commit en cours..."
|
||||
sleep 1
|
||||
git commit
|
||||
echo "Entrez la version du tag:"
|
||||
read tag
|
||||
git tag $tag
|
||||
echo "Push des fichiers au Gitea, branche test..."
|
||||
sleep 1
|
||||
git push -q origin test --tag
|
||||
fi
|
||||
|
||||
if [ $answer == 1 ] ; then
|
||||
git checkout main
|
||||
echo "Récupération des fichiers à jour, branche main..."
|
||||
git pull -q origin main
|
||||
echo "Fichiers à jour récupérés."
|
||||
else
|
||||
echo "Choisissez une branche et une option valide. Veuillez relancer le script"
|
||||
|
||||
fi
|
||||
git checkout main
|
||||
echo "Ajout des fichiers au Gitea..."
|
||||
sleep 1
|
||||
git add .
|
||||
echo "Commit en cours..."
|
||||
sleep 1
|
||||
git commit
|
||||
git tag -l "v.*" --sort="-v:refname"
|
||||
echo "Entrez la version du tag: (Le plus récent est en haut)"
|
||||
read tag
|
||||
git tag $tag
|
||||
echo "Push des fichiers au Gitea, branche main..."
|
||||
sleep 1
|
||||
git push -q origin main --tag
|
||||
fi
|
||||
|
@ -1,4 +1,6 @@
|
||||
Chaque dossier porte le numéro et la description du TP associé.
|
||||
Chaque dossier porte le(s) numéro(s) du TP, et une abbréviation de son contenu.
|
||||
|
||||
Ici se trouve la table de correspondance :
|
||||
|
||||
01: Mise en oeuvre d'une infrastructure DHCP et routage.
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user