How do I use PowerShell with Gitlab CI in Gitlab Pages?

前端 未结 3 1304
遇见更好的自我
遇见更好的自我 2021-02-14 18:12

How do I use PowerShell commands/scripts with Gitlab CI in a .gitlab-ci.yml file which is used to deploy to gitlab pages?

I am trying to execute the b

3条回答
  •  误落风尘
    2021-02-14 19:03

    The docker image philippheuer/docker-gitlab-powershell is outdated. The source on Github was also deleted.

    I use in my gitlab-ci.yml the following image mcr.microsoft.com/powershell:latest more Informations available here

    scriptjob:
      stage: script
      image: 
        name: "mcr.microsoft.com/powershell:latest"
      script:
        - pwsh ./myscript.ps1
    

提交回复
热议问题