From 14498fb30d8401b9fed94732386b9f68792e5f78 Mon Sep 17 00:00:00 2001 From: Pavel Nakonechnyi Date: Thu, 3 Oct 2024 10:04:58 +0200 Subject: [PATCH] t --- .github/workflows/nca-build-docker-image.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/nca-build-docker-image.yml b/.github/workflows/nca-build-docker-image.yml index 3293e61575..f1843d8230 100644 --- a/.github/workflows/nca-build-docker-image.yml +++ b/.github/workflows/nca-build-docker-image.yml @@ -93,10 +93,15 @@ 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 run: | - sudo systemctl status systemd-networkd - sudo systemctl status systemd-resolved nslookup docker-registry-internal.extranet.netcetera.biz echo "${{ secrets.NCA_REPO_PASSWORD }}" | docker login "${{ env.DD_REGISTRY }}" -u "${{ secrets.NCA_REPO_USERNAME }}" --password-stdin