Junior — Middle
Have you worked with setting up and managing GitLab CI/CD in your projects?
sobes.tech AI
Answer from AI
Yes, in projects I configured GitLab CI/CD to automate building, testing, and deploying applications. I usually created a .gitlab-ci.yml file where I described the pipeline stages:
- build — building the project (e.g., compilation or dependency installation)
- test — running unit and integration tests
- deploy — automatic deployment to testing or production servers
An example of a simple .gitlab-ci.yml:
stages:
- build
- test
- deploy
build_job:
stage: build
script:
- ./gradlew build
test_job:
stage: test
script:
- ./gradlew test
deploy_job:
stage: deploy
script:
- ./deploy.sh
only:
- master
I also configured environment variables, secrets, and integration with Docker Registry for containerization.