Skip to content

Commit

Permalink
github/workflows/nca-build-docker-image: explicitly configure DNS ser…
Browse files Browse the repository at this point in the history
…ver as image's default was not configured properly
  • Loading branch information
pna-nca committed Oct 15, 2024
1 parent 8778857 commit ebbbb17
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/nca-build-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit ebbbb17

Please sign in to comment.