1 Commits

Author SHA1 Message Date
ebb85c44bc init 2022-09-28 12:28:51 +07:00
4 changed files with 18 additions and 4 deletions

2
.gitignore vendored
View File

@@ -5,4 +5,4 @@ data/gitlab-test/postgresql
data/gitlab-test/redis
data/gitlab-test/gitlab-runner*
Addons/
Addons/gpg*

View File

@@ -0,0 +1,2 @@
GITLAB_TOKEN=glpat-XXX
GITLAB_SERVER=https://git.realmanual.ru/api/v4

View File

@@ -0,0 +1,12 @@
#!/bin/bash
source .env
USERS_LIST=$(curl -s --header "Authorization: Bearer $GITLAB_TOKEN" "${GITLAB_SERVER}/users?per_page=100" | jq -r '.[] | select( .state == "deactivated" and .is_admin == false).id')
echo $USERS_LIST
for user in ${USERS_LIST[@]}; do
echo "delete user_id: $user"
curl -s --request DELETE --header "Authorization: Bearer $GITLAB_TOKEN" "${GITLAB_SERVER}/users/$user"
done

View File

@@ -1,8 +1,8 @@
# Репа по курсу Gitlab-CI: только практика
1. Курс размещен [тут](https://realmanual.ru/public/course/570b3728-c242-4bcc-9502-4f8a81201ba7)
2. Более подробно о курсе [тут](https://promo.realmanual.ru/gitlab)
3. Миттап про установку [тут](https://realmanual.ru/public/course/abfbffe1-a6a8-4c7e-b87c-36acd589aed0)
1. Курс размещен [тут](https://lk.realmanual.ru/student/courses/25)
2. Более подробно о курсе [тут](https://realmanual.ru/gitlab)
3. Миттап про установку [тут](https://lk.realmanual.ru/student/courses/22)
4. Наша группа ТГ для вопросов [тут](https://t.me/realmanual_group)
# Твики