This commit is contained in:
@@ -8,11 +8,20 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
build-and-deploy:
|
build-and-deploy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
# 1. On désactive la vérification SSL pour tout le conteneur du job (Node.js et Git)
|
||||||
|
env:
|
||||||
|
GIT_SSL_NO_VERIFY: "true"
|
||||||
|
NODE_TLS_REJECT_UNAUTHORIZED: "0"
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Patch DNS local pour Gitea Runner
|
- name: Patch DNS local pour Gitea Runner
|
||||||
run: sudo echo "10.10.40.31 git.bunker.lan" | sudo tee -a /etc/hosts
|
run: sudo echo "10.10.40.31 git.bunker.lan" | sudo tee -a /etc/hosts
|
||||||
|
|
||||||
|
# 2. On force l'exécutable Git interne à ignorer la vérification de l'autorité locale
|
||||||
|
- name: Configuration de Git pour SSL
|
||||||
|
run: git config --global http.sslVerify false
|
||||||
|
|
||||||
- name: Récupération du code
|
- name: Récupération du code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
@@ -32,9 +41,9 @@ jobs:
|
|||||||
|
|
||||||
- name: Déploiement FTP (10.10.40.12)
|
- name: Déploiement FTP (10.10.40.12)
|
||||||
env:
|
env:
|
||||||
FTP_USER: ${{ secrets.FTP_USER }} # Le compte FTP enfermé dans aegis.gise.be
|
FTP_USER: ${{ secrets.FTP_USER }} # Le compte FTP enfermé dans aegis.gise.be
|
||||||
FTP_PASSWORD: ${{ secrets.FTP_PASSWORD }}
|
FTP_PASSWORD: ${{ secrets.FTP_PASSWORD }}
|
||||||
FTP_SERVER: ${{ secrets.FTP_SERVER }} # Doit contenir : 10.10.40.12
|
FTP_SERVER: ${{ secrets.FTP_SERVER }} # Doit contenir : 10.10.40.12
|
||||||
run: |
|
run: |
|
||||||
cat << EOF > script.lftp
|
cat << EOF > script.lftp
|
||||||
set ftp:passive-mode true
|
set ftp:passive-mode true
|
||||||
|
|||||||
Reference in New Issue
Block a user