Update .gitlab-ci.yml file
This commit is contained in:
@ -16,24 +16,18 @@
|
||||
# This specific template is located at:
|
||||
# https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/Getting-Started.gitlab-ci.yml
|
||||
|
||||
image: ubuntu
|
||||
image: philippheuer/docker-gitlab-powershell
|
||||
|
||||
stages: # List of stages for jobs, and their order of execution
|
||||
- build
|
||||
- deploy
|
||||
|
||||
build-job: # This job runs in the build stage, which runs first.
|
||||
prep-job: # This job runs in the build stage, which runs first.
|
||||
stage: build
|
||||
script:
|
||||
- apt-get update
|
||||
- apt-get install -y wget apt-transport-https software-properties-common
|
||||
- source /etc/os-release
|
||||
- wget -q https://packages.microsoft.com/config/ubuntu/$VERSION_ID/packages-microsoft-prod.deb
|
||||
- dpkg -i packages-microsoft-prod.deb
|
||||
- apt-get update && apt-get install -y powershell
|
||||
- pwsh -Command {Install-Module ps2exe -Confirm:$False -Force}
|
||||
- pwsh -Command {ps2exe .\laps.ps1 -requireAdmin -noOutput -noError -title "LAPS" -description "Outil pour récupérer un mot de passe LAPS dans un Active Directory" -Company "Académie Nancy-Metz" -noconsole}
|
||||
- ls .
|
||||
- powershell -Command {Install-Module ps2exe -Confirm:$False -Force}
|
||||
- powershell -Command {ps2exe .\laps.ps1 -requireAdmin -noOutput -noError -title "LAPS" -description "Outil pour récupérer un mot de passe LAPS dans un Active Directory" -Company "Académie Nancy-Metz" -noconsole}
|
||||
|
||||
artifacts:
|
||||
when: on_success
|
||||
access: all
|
||||
|
||||
Reference in New Issue
Block a user