Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Your DNS server does not resolve my domain correctly #149

Open
popov654 opened this issue Nov 15, 2023 · 0 comments
Open

Your DNS server does not resolve my domain correctly #149

popov654 opened this issue Nov 15, 2023 · 0 comments

Comments

@popov654
Copy link

I have the following action code:

name: Deploy

on:
  push:
    branches:
      - master

jobs:
  deployment:

    runs-on: ubuntu-latest
    environment: main

    steps:
    - uses: actions/checkout@v1

    - name: Copy repository contents via scp
      uses: appleboy/scp-action@master
      with:
        HOST: ${{ secrets.HOST }}
        USERNAME: ${{ secrets.USERNAME }}
        PASSWORD: ${{ secrets.PASSWORD }}
        PORT: ${{ secrets.PORT }}
        KEY: ${{ secrets.SSHKEY }}
        source: "."
        target: "/opt/cloudfave"

    - name: Executing remote command
      uses: appleboy/ssh-action@master
      with:
        host: ${{ secrets.HOST }}
        USERNAME: ${{ secrets.USERNAME }}
        PASSWORD: ${{ secrets.PASSWORD }}
        PORT: ${{ secrets.PORT }}
        KEY: ${{ secrets.SSHKEY }}
        script: sudo npm install && sudo systemctl restart nodeserver

It gives me this error on execution:

drone-scp error: error copy file to dest: ***, error message: dial tcp: lookup *** on 168.63.129.16:53: no such host

I don't want to use an IP address in my variables since it may change in the future. Should not DNS work correctly?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant