User Tools

Site Tools


инструмент_gitlab

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
инструмент_gitlab [2022/06/10 20:36]
val [GitLab Runner]
инструмент_gitlab [2022/06/15 10:47]
val [GitLab Runner]
Line 20: Line 20:
  
   * [[https://​docs.gitlab.com/​runner/​install/​linux-manually.html|Install GitLab Runner manually on GNU/Linux]]   * [[https://​docs.gitlab.com/​runner/​install/​linux-manually.html|Install GitLab Runner manually on GNU/Linux]]
 +
 +  * [[https://​medium.com/​@ryzmen/​gitlab-fast-pipelines-stages-jobs-c51c829b9aa1|GitLab:​ understanding pipelines, stages, jobs and organising them efficiently for speed and feedback loop]]
 +
   * [[https://​val.bmstu.ru/​unix/​Git/​gitlab-runner_amd64.deb]] (15.0.0) ​   * [[https://​val.bmstu.ru/​unix/​Git/​gitlab-runner_amd64.deb]] (15.0.0) ​
  
Line 29: Line 32:
 log_level = "​debug"​ log_level = "​debug"​
 ... ...
- 
-root@node2:​~#​ mkdir /​var/​lib/​gitlab-runner 
- 
-root@node2:​~#​ chown gitlab-runner /​var/​lib/​gitlab-runner 
 </​code>​ </​code>​
   * Технология Docker [[Технология Docker#​Предоставление прав непривилегированным пользователям]]   * Технология Docker [[Технология Docker#​Предоставление прав непривилегированным пользователям]]
Line 45: Line 44:
 <​code>​ <​code>​
 vagrant@node1:​~/​project1$ cat .gitlab-ci.yml vagrant@node1:​~/​project1$ cat .gitlab-ci.yml
-before_script:​ +#before_script:​ 
-  - echo "​Before script section"​ >> /​tmp/​Bash.gitlab-ci.log+ - echo $(date) ​"​Before script section"​ >> /​tmp/​Bash.gitlab-ci.log
  
-after_script:​ +#after_script:​ 
-  - echo "After script section"​ >> /​tmp/​Bash.gitlab-ci.log+ - echo $(date) ​"After script section"​ >> /​tmp/​Bash.gitlab-ci.log 
 + 
 +test1: 
 +  stage: test 
 +  script: 
 +    - echo $(date) "Do a test here" >> /​tmp/​Bash.gitlab-ci.log 
 +    - shellcheck webd/webd 
 +  tags: 
 +    - shellcheck
  
 deploy1: deploy1:
   stage: deploy   stage: deploy
   script:   script:
-    - echo "Do your deploy here" >> /​tmp/​Bash.gitlab-ci.log+    - echo $(date) ​"Do your deploy here" >> /​tmp/​Bash.gitlab-ci.log
     - docker-compose up -d     - docker-compose up -d
 +  tags:
 +    - webddeploy
 </​code>​ </​code>​
  
инструмент_gitlab.txt · Last modified: 2024/06/13 08:39 by val