You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As we saw, the workflow was failed. Why? Because each time a Github job is executed, it's a new and clean machine outside repository. That is, we need to allow job's git push. The best approach is creating a new ssh key on local:
98
+
As we saw, the workflow failed. Why? Because each time a Github job is executed, it's a new and clean machine outside repository. That is, we need to allow job's git push. The best approach is creating a new ssh key on local:
99
99
100
100
```bash
101
101
ssh-keygen -m PEM -t rsa -C "cd-user@my-app.com"
102
102
```
103
+
103
104
```bash
104
-
> Enter file in which to save the key (/c/Users/nasda/.ssh/id_rsa): `./id_rsa`
105
+
> Enter file in which to save the key: `./id_rsa`
105
106
> Enter passphrase (empty for no passphrase): `Pulse Enter for empty`
106
107
> Enter same passphrase again: `Pulse Enter for empty`
107
108
```
108
109
109
-
> NOTES
110
+
> NOTES:
111
+
>
110
112
> -m PEM: Format to apply. PEM is a common public/private key certificate format.
113
+
>
111
114
> rsa: RSA is the crypto algorithm.
115
+
>
112
116
> Enter `./id_rsa` to save files in currect directory
117
+
>
113
118
> You can leave empty the passphrasse field.
114
119
115
120
Copy `id_rsa.pub` content to `Github Settings` > `Deploy keys` section:
@@ -171,6 +176,7 @@ jobs:
171
176
```
172
177
173
178
> NOTES:
179
+
>
174
180
> "Use SSH key" step: create id_rsa with ssh private key in default ssh folder and add write permits.
175
181
>
176
182
> "Deploy" step: update deploy command with repository's SSH URL.
0 commit comments