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
Example using the new YML syntax #2
Comments
|
I've proposed an attempt to do that in #7. |
|
|
I'm still getting docker exiting with code 2 when it gets to the entrypoint.sh. Any thoughts? |
|
It seems to work here, I get a full list of all the files and this after: But no files appear at the receiving end. Any ideas what could cause this? |
|
@generator85 Make sure your destination server:/path captured in $3 variable in entrypoint.sh |
|
For whoever is landing up here, I recommend ditching the pre-made rsync actions and going either fully manually or use simpler helper like ssh-agent: steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup SSH agent
uses: webfactory/ssh-agent@v0.4.0
with:
ssh-private-key: ${{ secrets.DEPLOY_SSH_KEY }}
- name: Setup known_hosts
run: echo 'my.host.io ssh-rsa AAAAB3....+8U=' >> ~/.ssh/known_hosts
- name: Sync project files
run: rsync -avzr --delete ${GITHUB_WORKSPACE}/ user@my.host.io:/srv/files/(you can generate the line for known_host with ssh-keyscan, or simply copy it from your own The reasons being:
|
Hi, could you please provide an example about how to use rsync-deployments using the new YML syntax provided by Github Actions?
The text was updated successfully, but these errors were encountered: