Update .gitlab-ci.yml file

This commit is contained in:
J. Secula
2025-06-05 09:57:21 +02:00
parent c407b75a04
commit 0971960778

View File

@ -16,7 +16,7 @@
# This specific template is located at:
# https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/Getting-Started.gitlab-ci.yml
image: mcr.microsoft.com/powershell/test-deps:ubuntu-18.04
image: ubuntu
stages: # List of stages for jobs, and their order of execution
- build
@ -25,6 +25,12 @@ stages: # List of stages for jobs, and their order of execution
build-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
- powershell Install-Module ps2exe -Confirm:$False -Force
- powershell 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