So I was playing around with .Net core and wondering how to make use of Gitlab's CI/CD pipeline without having to set up an external runner.
It turns out the process is very simple, in your .gitlab-ci.yml , the first line is to point to a docker image, which will be used for your build. The last important step is in your tags section to refer to one of the tags used by the shared gitlab runners.
For example I referred to the docker tag.
example of .gitlab-ci.yml
It turns out the process is very simple, in your .gitlab-ci.yml , the first line is to point to a docker image, which will be used for your build. The last important step is in your tags section to refer to one of the tags used by the shared gitlab runners.
For example I referred to the docker tag.
example of .gitlab-ci.yml
image: microsoft/dotnet stages: - build build: stage: build script: - dotnet build tags: - docker
Comments
Post a Comment