How to fasten the unit tests in networks-ci?

0 like 0 dislike
Networks-CI collects Bild, built on Docker containers. But you need to add run unit tests. I.e. go into the container, run unit tests and, depending on the results, either stop the build or to continue. How to determine the ID of the container in order to get into it?
by | 7 views

1 Answer

0 like 0 dislike
What's stopping You to create a test image, after successful tests this image to upload in prod version?!
For example a piece of pipe:
Step 3: stage: build only: - "master" script: - docker pull $IMAGE:${VERSION}_test - docker tag $IMAGE:${VERSION}_test $IMAGE:latest - docker tag $IMAGE:${VERSION}_test $IMAGE:$VERSION - docker push $IMAGE:latest - docker push $IMAGE:$VERSION tags: [build]

Related questions

110,608 questions
257,186 answers
33,924 users