fix(ci): Simplify SSL setup step, remove fragile git config parsing
This commit is contained in:
parent
e3faf7711c
commit
4c0cfb72eb
1 changed files with 1 additions and 10 deletions
|
|
@ -17,19 +17,10 @@ jobs:
|
||||||
runs-on: gbo
|
runs-on: gbo
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Disable SSL verification
|
- name: Setup Git
|
||||||
run: |
|
run: |
|
||||||
git config --global http.sslVerify false
|
git config --global http.sslVerify false
|
||||||
git config --global --add safe.directory "*"
|
git config --global --add safe.directory "*"
|
||||||
# Remove ALL git url replacements that redirect to internal IPs
|
|
||||||
git config --global --list | grep -E "^url\..*\.insteadof" | while read line; do
|
|
||||||
key=$(echo "$line" | cut -d= -f1)
|
|
||||||
git config --global --unset-all "$key" 2>/dev/null || true
|
|
||||||
done
|
|
||||||
# Also remove any old-style entries
|
|
||||||
git config --global --remove-section url."http://x.x.x.x:4747/".insteadof 2>/dev/null || true
|
|
||||||
git config --global --remove-section url."https://alm.pragmatismo.com.br/".insteadof 2>/dev/null || true
|
|
||||||
# Ensure hosts entry for alm in CI container (required for DNS)
|
|
||||||
echo "10.157.134.241 alm.pragmatismo.com.br" >> /etc/hosts
|
echo "10.157.134.241 alm.pragmatismo.com.br" >> /etc/hosts
|
||||||
|
|
||||||
- name: Setup Workspace
|
- name: Setup Workspace
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue