Actualiser .gitea/workflows/deploy-canary.yml
This commit is contained in:
1 parent
836960ec17
commit
09e9e5409b
1 file changed
+17
@@ -27,6 +27,23 @@ jobs:
|
|||||||
getent hosts ephagit.ephaitek.com
|
getent hosts ephagit.ephaitek.com
|
||||||
getent hosts srv.ephaitek.com
|
getent hosts srv.ephaitek.com
|
||||||
curl -sI https://ephagit.ephaitek.com/ | head -n1 || true
|
curl -sI https://ephagit.ephaitek.com/ | head -n1 || true
|
||||||
|
- name: Test flux réseau (runner -> Gitea & srv)
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
set -e
|
||||||
|
echo "== Résolution DNS =="
|
||||||
|
getent hosts ephagit.ephaitek.com || true
|
||||||
|
getent hosts srv.ephaitek.com || true
|
||||||
|
echo "== HTTPS vers Gitea =="
|
||||||
|
curl -sI https://ephagit.ephaitek.com | head -n1
|
||||||
|
|
||||||
|
echo "== TCP 2224 vers srv =="
|
||||||
|
# pas besoin de nc : on utilise /dev/tcp de bash
|
||||||
|
if timeout 5 bash -c 'cat < /dev/null > /dev/tcp/srv.ephaitek.com/2224'; then
|
||||||
|
echo "OK: port 2224 ouvert vers srv"
|
||||||
|
else
|
||||||
|
echo "KO: port 2224 inaccessible depuis le conteneur"; exit 2
|
||||||
|
fi
|
||||||
- name: Checkout (shallow + token)
|
- name: Checkout (shallow + token)
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
|
|||||||
Reference in new issue
Block a user