Update .gitlab-ci.yml file

This commit is contained in:
J. Secula
2025-06-05 10:30:17 +02:00
parent c34d4d4e1c
commit 6c000600da

View File

@ -16,24 +16,18 @@
# This specific template is located at: # This specific template is located at:
# https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/Getting-Started.gitlab-ci.yml # 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 stages: # List of stages for jobs, and their order of execution
- build - build
- deploy - 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 stage: build
script: script:
- apt-get update - powershell -Command {Install-Module ps2exe -Confirm:$False -Force}
- apt-get install -y wget apt-transport-https software-properties-common - 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}
- 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 .
artifacts: artifacts:
when: on_success when: on_success
access: all access: all