From d7e7d220cefaf03525197c409a09bd7b9e437056 Mon Sep 17 00:00:00 2001 From: Pavel Nakonechnyi Date: Thu, 3 Oct 2024 10:06:59 +0200 Subject: [PATCH] github/workflows/nca-build-docker-image: explicitly configure DNS server as image's default was not configured properly --- .github/workflows/nca-build-docker-image.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/nca-build-docker-image.yml b/.github/workflows/nca-build-docker-image.yml index 44a4c60a66..df01390eef 100644 --- a/.github/workflows/nca-build-docker-image.yml +++ b/.github/workflows/nca-build-docker-image.yml @@ -93,6 +93,13 @@ jobs: - name: checkout the repo uses: actions/checkout@v4 + - name: Set 8.8.8.8 as dns server + run: | + sudo sed -i 's/#DNS=/DNS=8.8.8.8 8.8.4.4/g' /etc/systemd/resolved.conf + sudo systemctl daemon-reload + sudo systemctl restart systemd-networkd + sudo systemctl restart systemd-resolved + - name: login to Docker repository uses: docker/login-action@v3 with: