This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
инструмент_gitlab [2022/06/11 18:40] val [GitLab Runner] |
инструмент_gitlab [2022/06/15 09:18] val [GitLab CI/CD] |
||
---|---|---|---|
Line 41: | Line 41: | ||
<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> | ||