diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index cc5503a..2e9c766 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -21,6 +21,8 @@ jobs: steps: - name: Checkout repository run: | + # Runner DNS overrides bypass Docker's embedded DNS; add gitea to hosts + grep -q gitea /etc/hosts || echo "172.21.0.4 gitea" >> /etc/hosts if [ ! -d .git ]; then git clone --depth=1 "http://gitea:3000/${GITHUB_REPOSITORY}.git" . fi @@ -107,6 +109,7 @@ jobs: steps: - name: Checkout repository run: | + grep -q gitea /etc/hosts || echo "172.21.0.4 gitea" >> /etc/hosts if [ ! -d .git ]; then git clone --depth=1 "http://gitea:3000/${GITHUB_REPOSITORY}.git" . fi @@ -185,6 +188,7 @@ jobs: steps: - name: Checkout repository run: | + grep -q gitea /etc/hosts || echo "172.21.0.4 gitea" >> /etc/hosts if [ ! -d .git ]; then git clone --depth=1 "http://gitea:3000/${GITHUB_REPOSITORY}.git" . fi