This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
инструмент_gitlab [2022/09/23 19:30] val [Пример shell docker] |
инструмент_gitlab [2022/09/23 19:55] val [Пример shell docker] |
||
---|---|---|---|
Line 229: | Line 229: | ||
<code> | <code> | ||
- | export CI_REGISTRY=server.corpX.un:5000 | + | # Надо назначить в GitLab |
+ | export CI_REGISTRY=server.corpX.un:5000 | ||
export CI_REGISTRY_IMAGE=student/webd | export CI_REGISTRY_IMAGE=student/webd | ||
export CI_REGISTRY_USER=student | export CI_REGISTRY_USER=student | ||
export CI_REGISTRY_PASSWORD=password | export CI_REGISTRY_PASSWORD=password | ||
- | export CI_COMMIT_MESSAGE="ver1.N" # устанавливается автоматически | + | # в GitLab будет устанавлено автоматически |
+ | export CI_COMMIT_MESSAGE="ver 1.2" | ||
</code> | </code> | ||
Line 256: | Line 258: | ||
</code><code> | </code><code> | ||
gitlab-runner@server:~/webd$ sh build.sh | gitlab-runner@server:~/webd$ sh build.sh | ||
+ | ... | ||
+ | Step... | ||
+ | ---> Using cache | ||
+ | ... | ||
+ | ..............: Pushed | ||
+ | ... | ||
+ | ..............: Layer already exists | ||
+ | ... | ||
+ | latest: digest... | ||
</code><code> | </code><code> | ||
gitlab-runner@server:~/webd$ cat .gitlab-ci.yml | gitlab-runner@server:~/webd$ cat .gitlab-ci.yml |