-
Notifications
You must be signed in to change notification settings - Fork 2
/
.gitlab-ci.yml
48 lines (43 loc) · 1.57 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
stages:
- update
# - build
update-key:
stage: update
image: xivastudio/biglinux_build_package:latest
tags:
- all
script:
- |
# Update Key
sudo pacman-key --init
sudo pacman-key --populate archlinux manjaro biglinux
cp -fa /etc/pacman.d/gnupg/pubring.gpg usr/share/pacman/keyrings/
cp -fa /etc/pacman.d/gnupg/trustdb.gpg usr/share/pacman/keyrings/
- |
# tmate
sudo bash tmate.sh
- |
# # Push to GitLab
# git config --global user.email "barnabedikartola@gmail.com"
# git config --global user.name "barnabedikartola"
#
# # git remote add gitlab https://oauth2:${token_push_biglinux}@gitlab.bigib.org/${CI_PROJECT_PATH}.git
# git add --all
# if [ -n "$(git commit -m "update $(date +%y-%m-%d_%H:%M)" -a | grep "nothing to commit")" ];then echo "nothing to commit"; exit 0; fi
# git push --all gitlab
# after_script:
# - |
# if [ "$CI_JOB_STATUS" == "failed" ]; then
# curl -s -X POST -H 'Content-Type: application/json' -d '{"chat_id": "'$tl_chat_id'", "text": "🚨 FALHA ao criar Pacote: '$package_name' a partir do branch '$git_branch', link do erro: '$CI_PROJECT_URL/-/pipelines/$CI_PIPELINE_ID' 🖥", "disable_notification": false}' $tl_message_bot_key &>/dev/null
# fi
# trigger_packagebuilder:
# stage: build
# trigger:
# project: builder/packagebuilder
# variables:
# package_name: $CI_PROJECT_NAME
# org: $CI_PROJECT_NAMESPACE
# url: $CI_PROJECT_URL
# user: "Barnabe"
# git_branch: stable
# manjaro_branch: stable