DNS not working
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 28/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- github-actions, shell, ubuntu
- Domain
- ci-cd, devops, networking
Research direction
Start with the workflow shown in the issue, comparing the Tailscale setup and status checks with appleboy/scp-action@master. Reproduce the hostname lookup failure and inspect how the action resolves its host; done means the workflow can use the Tailscale node name without the reported DNS error, with the behavior covered by an appropriate test or documented fix.
Written by the indexing model from the issue text.
Description
name: Deploy to VM
on:
push:
branches:
- main
- master
pull_request:
branches:
- '*'
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/setup-node@v4
with:
node-version: 20
- name: Build
env:
run: |
npm ci
npm run generate
- name: Tailscale
uses: tailscale/github-action@v2
with:
oauth-client-id: ${{ secrets.TS_OAUTH_CLIENT_ID }}
oauth-secret: ${{ secrets.TS_OAUTH_SECRET }}
tags: tag:ci
version: 1.66.4
- name: netmap
run:
tailscale status
ping -c 4 ${{ secrets.HOST }}
- name: copy file via ssh
uses: appleboy/scp-action@master
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.SSH_PRIVATE_KEY }}
source: '.output/public/*'
target: '/home/dockeruser/abc/pb_public/'
overwrite: true
strip_components: 2
The tailscale status and ping -c 4 ${{ secrets.HOST }} all work great. HOST is one of the node machine names.
appleboy/scp-action@master gives me:
2024/06/02 20:59:42 error copy file to dest: ***, error message: dial tcp: lookup *** on 1111.222.333.444:53: no such host
I have solved this with an action to get and set the IP to output variables:
- name: netmap
id: tailscale-netmap
run: |
ip=$(tailscale status | grep '${{ secrets.HOST }}' | awk '{print $1}')
echo "LINODE_IP=$ip" >> "$GITHUB_OUTPUT"
- name: copy file via ssh
uses: appleboy/scp-action@0.1.7
with:
host: ${{ steps.tailscale-netmap.outputs.LINODE_IP }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.SSH_PRIVATE_KEY }}
source: '.output/public//${{ GITHUB_SHA }}'
target: '/home/dockeruser/failreactor/'
overwrite: true
strip_components: 2
This is obviously super lame. What am I doing wrong?
- Dominant language
- TypeScript
- Stars
- 938
- Forks
- 137
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from tailscale/github-action
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
tailscale/github-action#283 · 1 comment · 1 reaction ·
-
fr
Difficulty 3/5 1-2 days Newbie friendliness 68/100
tailscale/github-action#317 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 48/100
tailscale/github-action#316 · 2 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 52/100
tailscale/github-action#315 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 76/100
tailscale/github-action#313 · 1 reaction ·
All issues in tailscale/github-action
Similar issues
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
dennys-bd/agent-hive#184 ·
-
Add: hunch Open
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
AbdelStark/awesome-typesafe#104 ·
-
ai-observability bug team/ai-observability
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
vicharanashala/fln#563 ·