I am learning to work with gitlab CI/CD using docker executor.
Below is my gitlab-ci.yml file.
image: registry.gitlab.com/vbrin-office/components/karma-tests
stages:
- test
test:
stage: test
script:
- node --version
- git --version
- pwd
- ls
- cd /karmatests
- ls
- npx karma start
Each time when the pipeline is finished executing, I would like to commit the container and push it to the GitLab registry so that I can access it later.
Since we are actually inside the docker container for which I want to create an image. How could I do that? Is it even possible?