Files
paadi b80efe5d8b
Build go program / Test-Gitea-Actions (push) Successful in 10s
presetLocalContainer/action.yaml aktualisiert
2026-04-14 20:12:32 +02:00

27 lines
884 B
YAML

name: presetLocalContainer
description: preseting Gitea Job Runner
runs:
using: "composite"
steps:
- name: Setup Environment
shell: bash
run: |
echo "NODE_TLS_REJECT_UNAUTHORIZED=0" >> $GITHUB_ENV
echo "GIT_SSL_NO_VERIFY=true" >> $GITHUB_ENV
- name: Disable SSL verify
run: git config --global http.sslVerify false
- name: Force DNS Fix
shell: sh
run: |
# extract gateway-IP from routing-table
GATEWAY_IP=$(awk 'NR==2 {printf "%d.%d.%d.%d\n", "0x"substr($3,7,2), "0x"substr($3,5,2), "0x"substr($3,3,2), "0x"substr($3,1,2)}' /proc/net/route)
#echo "Gefundene Gateway-IP: $GATEWAY_IP"
# write entry in /etc/hosts
echo "$GATEWAY_IP gitea.tecamino.local" >> /etc/hosts
- name: Verify Fix
run: cat /etc/hosts