i am trying to create a github action file wich tests and deploys web/api to a server. the Problem i am facing is, that i cannot really get the authentification going within the action file - only if i send the ssh pw inside the deploy.toml.
so in the action file i want to do something like this:
- name: deploy to server
run: yarn rw deploy baremetal production
but the Problem is, that there seems to be no way to put the ssh password into a github action secret without it beeing replaced by “***”
so i tried this: sed -in "s/^password.*/password=$SERVER_PASSWORD/g" deploy.toml
in the action file (SERVER_PASSWORD) is a action secret, but it only results in a “***” bevause github replaces all visible secrets (kinda makes sense…)
What would be the way to go here? or is this basically not possible?
I haven’t tried deploying from GitHub, but is there a way to tell GitHub to use a certain deploy key during the GitHub Action run? If you set a deploy key in your Settings, and then put that same key in the ~/.ssh/authorized_keys file on the server (and GitHub will let you use that key in during the Action) then it could log in without a password.
Hi,
thanks for your help - i managed to make it work, but decided that i will deploy as a dockercontainer to my server (wich runs caprover).
that makes it way easier to configure and maintain.
Cheers