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

前端 未结 3 982
谎友^
谎友^ 2021-02-14 18:28

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 18:39

    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
    

提交回复
热议问题