Gitlab Pipeline to Dev, Stage, and Prod

Previously I was in Azure. It was repo, pipeline with 3 environments which was dev, stage, and prod. When deploying, it deploys to a standard iis Windows server. Now that I am in Gitlabs, I am trying to mimic the same setup. My main project is typically a Visual Studios compiled project. So currently I am having issues building the 3 environments, and need help figuring out how to get started. Below is what I have so far on my .gitlab-ci.yml file.

stages:

  • test
  • build
  • deploy

deploy_development:
stage: deploy
environment:
name: development
url: https://www.yourwebsite.com

sast:
when: manual
stage: test

include:

  • template: Security/SAST.gitlab-ci.yml
  • template: Security/Dependency-Scanning.gitlab-ci.yml
  • template: Security/Secret-Detection.gitlab-ci.yml

before_script:

  • nuget restore

build:
tags:
- chester-windows
script:
- msbuild