/
legendae
/
DO6_CICD-1
GigaStudio
New
Обзор
Документация
Войти
/
legendae
/
DO6_CICD-1
Код
Запросы
0
Задачи
Вики
Релизы
0
Аналитика
Безопасность
DO6_CICD-1
Форк
0
Избранное
0
GigaIDE Cloud
GigaStudio
Описание
3.92 MiB
README
Лицензия
История изменений
В избранном
0
Форки
0
Языки
C
69,2%
Makefile
29,3%
Shell
1,5%
Сообщить о нарушении
master
Ветки:
1
Коммиты:
1
Теги:
0
Код
S
legendae
Add repo
25 окт 2024, 14:19
25 окт 2024, 14:19
c69b805
code-samples
Add repo
2 года назад
data-samples
Add repo
2 года назад
datasets
Add repo
2 года назад
materials
Add repo
2 года назад
misc
Add repo
2 года назад
src
Add repo
2 года назад
ACTIVE_TAG_FILES.txt
Add repo
2 года назад
CHANGELOG
Add repo
2 года назад
LICENSE
Add repo
2 года назад
README.md
Add repo
2 года назад
README_RUS.md
Add repo
2 года назад
deploy.sh
Add repo
2 года назад
gitlab-ci.yml
Add repo
2 года назад
Basic CI/CD
Contents
Chapter I
Chapter II
CI/CD basics
CI basics
CD basics
Chapter III
Part 1. Setting up the gitlab-runner
Start Ubuntu Server 22.04 LTS virtual machine.
Download and install gitlab-runner on the virtual machine.
Run gitlab-runner and register it for use in the current project (DO6_CICD).
Part 2. Building
Write a stage for CI to build applications from the C2_SimpleBashUtils project.
In the gitlab-ci.yml file, add a stage to start the building via makefile from the C2 project.
Save post-build files (artifacts) to a random directory with a 30-day retention period.
Part 3. Codestyle test
Write a stage for CI that runs a codestyle script (clang-format).
If the codefile didn't pass, "fail" the pipeline.
In the pipeline, display the output of the clang-format utility.
Part 4. Integration tests
Write a stage for CI that runs your integration tests from the same project.
Run this stage automatically only if the build and codestyle test passes successfully.
If tests didn't pass, "fail" the pipeline.
In the pipeline, display the output of the succeeded / failed integration tests.
Part 5. Deployment stage
Start the second virtual machine Ubuntu Server 22.04 LTS.
Write a stage for CD that "deploys" the project on another virtual machine.
Run this stage manually, if all the previous stages have passed successfully.
Write a bash script which copies the files received after the building (artifacts) into the /usr/local/bin directory of the second virtual machine using ssh and scp.
In the gitlab-ci.yml file, add a stage to run the script you have written.
In case of an error, fail the pipeline.
Save dumps of virtual machine images.
Part 6. Bonus. Notifications
Set up notifications of successful/unsuccessful pipeline execution via bot named "[your nickname] DO6 CI/CD" in Telegram.
Chapter IV
README.md