I have a Gitlab Pipeline where I do some tests and then build a Docker image. See the snippet of what it looks like:
image:
name: node:18.13.0-alpine
entrypoint: [""]
stages:
- test
- build
test:
stage: test
script:
- yarn install
- yarn test:coverage
publish:
stage: build
script:
- docker build -t someimage:123 .
I have two questions with this: