Skip to content

Commit 7127214

Browse files
12.12 update lesson-6.md
Fix GitLab bug with files variables Add Manual approval
1 parent da7be3a commit 7127214

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Course/lesson-6.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,13 +81,18 @@
8181
* Add variables to not DUPLICATE the code:
8282
* `extends: deploy` - to use deploy stage with variables for each stage (dev/staging/prod)
8383
* use 5 variables:
84-
* `SSH_PRIVATE_KEY`
84+
* `SSH_KEY`
8585
* `SERVER_HOST`
8686
* `DEPLOY_ENV`
8787
* `APP_PORT`
8888
* `ENDPOINT`
8989
* Hide extended jobs with "."
9090
* Also comment with "#"
91+
* Add Manual approval:
92+
* `when: manual` - execute job only after user input
93+
* Fix GitLab bug with files variables:
94+
* ` - echo $SSH_KEY | sed -e "s/-----BEGIN RSA PRIVATE KEY-----/&\n/" -e "s/-----END RSA PRIVATE KEY-----/\n&/" -e "s/\S\{64\}/&\n/g" > deploy-key.pem`
95+
* echoing $SSH_KEY variable file and using string concatenation on it to use it's text
9196

9297

9398

0 commit comments

Comments
 (0)