Commit Graph

9 Commits

Author SHA1 Message Date
Jakub Sokołowski 90aad09e47 backend: use sensible lock filename for git
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2023-02-21 19:58:39 +01:00
Jakub Sokołowski 94e1e15c31 backend: fix use of SSH private key for git ops
Primarily this is supposed to fix the `git pull` aciton triggered by
webhooks from GitHub. But in addition to that the point is to simplify
that committing wrapper which has far too much in it.

Instead of passing everything as CLI arguments one should make use of
already supported environment variables and the `env` argument to
`subprocess` functions like `run()`. Writing extra logic in the wrapper
only makes it unnecessarily complicated.

By passing both user, email, and the SSH options in `run_shell_command`
we avoid the need to repeat the same boilerplate to provide Git config
and SSH credentials.

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2023-02-21 19:58:36 +01:00
jasquat 7160c70217 updated configs to use the prefix using the script w/ burnettk 2023-02-15 17:07:12 -05:00
burnettk 10180043ef since accepting the github host entry programatically is no more secure 2023-01-20 19:06:59 -05:00
jasquat 9fa2f982b9 allow specifying an ssh key for git instead of a username and password w/ burnettk 2023-01-20 15:11:23 -05:00
jasquat 20f378922e set the auth header when calling git commit w/ burnettk 2022-12-19 11:15:05 -05:00
jasquat e5b0311050 commit and push to github on all changes to bpmn dir w/ burnettk cullerton 2022-12-15 12:52:53 -05:00
burnettk 3b86b3cc1a configure staging to set git config 2022-10-04 16:07:51 -04:00
burnettk 8c5e11ca68 auto git commit on save 2022-10-04 14:42:31 -04:00