.gitea/workflows/build.yml hinzugefügt
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
name: Build go program
|
||||
run-name: ${{ gitea.actor }} is building go program
|
||||
on: [always, ush]
|
||||
|
||||
env:
|
||||
APP_NAME: test
|
||||
|
||||
jobs:
|
||||
Test-Gitea-Actions:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Verify Fix
|
||||
run: cat /etc/hosts
|
||||
- name: PrintTest testing
|
||||
uses: https://gitea.tecamino.local/paadi/giteaGlobals/workflow/@branch
|
||||
with:
|
||||
myVar: "hallo from adrian"
|
||||
|
||||
- name: Force DNS Fix (Robust)
|
||||
shell: sh
|
||||
run: |
|
||||
# Extrahiert die Gateway-IP aus der Routing-Tabelle ohne 'ip' Befehl
|
||||
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"
|
||||
# Schreibt den Eintrag in die /etc/hosts
|
||||
echo "$GATEWAY_IP gitea.tecamino.local" >> /etc/hosts
|
||||
|
||||
- name: Verify Fix
|
||||
run: cat /etc/hosts
|
||||
Reference in New Issue
Block a user