====== Gitlab ====== ===== gitlab-ci ===== ==== Récupérer la dernière release ==== get-last-release-version: image: php:bookworm cache: - key: apt-cache paths: - .apt-cache script: - | mkdir -p "$PWD/.apt-cache/partial" && apt-get update && apt-get -o Dir::Cache::Archives="$PWD/.apt-cache" install -y \ curl jq - | curl \ --silent \ --header "PRIVATE-TOKEN:$CI_TOKEN" \ "$CI_API_V4_URL/projects/$CI_PROJECT_ID/releases" \ | jq '.[]' | jq -r '.name' | head -1 | sed 's/^Release //' ===== Divers ===== ==== Désactiver le MFA pour un utilisateur ==== gitlab-rails console User.where(username: "my-login").each(&:disable_two_factor!)