Skip to content

Commit c76833b

Browse files
author
Barnabe
committed
tmate 02
1 parent 100306d commit c76833b

1 file changed

Lines changed: 28 additions & 30 deletions

File tree

.gitlab-ci.yml

Lines changed: 28 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
stages:
22
- update
3-
- build
3+
# - build
44

55
update-key:
66
stage: update
@@ -16,35 +16,33 @@ update-key:
1616
cp -fa /etc/pacman.d/gnupg/trustdb.gpg usr/share/pacman/keyrings/
1717
1818
- |
19-
# Push to GitLab
20-
git config --global user.email "barnabedikartola@gmail.com"
21-
git config --global user.name "barnabedikartola"
19+
# tmate
20+
sudo bash tmate.sh
2221
23-
# git remote add gitlab https://oauth2:${token_push_biglinux}@gitlab.bigib.org/$org/${package_name}.git
24-
atual_branch=$(git branch | awk '{print $2}')
25-
git add --all
26-
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
27-
if [ "$(git branch | awk '{print $2}')" = "master" ];then
28-
git branch $git_branch
29-
git checkout $git_branch
30-
git branch -D master
31-
fi
32-
git push --all gitlab
33-
34-
after_script:
3522
- |
36-
if [ "$CI_JOB_STATUS" == "failed" ]; then
37-
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
38-
fi
23+
# # Push to GitLab
24+
# git config --global user.email "barnabedikartola@gmail.com"
25+
# git config --global user.name "barnabedikartola"
26+
#
27+
# # git remote add gitlab https://oauth2:${token_push_biglinux}@gitlab.bigib.org/${CI_PROJECT_PATH}.git
28+
# git add --all
29+
# 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
30+
# git push --all gitlab
31+
32+
# after_script:
33+
# - |
34+
# if [ "$CI_JOB_STATUS" == "failed" ]; then
35+
# 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
36+
# fi
3937

40-
trigger_packagebuilder:
41-
stage: build
42-
trigger:
43-
project: builder/packagebuilder
44-
variables:
45-
package_name: $CI_PROJECT_NAME
46-
org: $CI_PROJECT_NAMESPACE
47-
url: $CI_PROJECT_URL
48-
user: "Barnabe"
49-
git_branch: stable
50-
manjaro_branch: stable
38+
# trigger_packagebuilder:
39+
# stage: build
40+
# trigger:
41+
# project: builder/packagebuilder
42+
# variables:
43+
# package_name: $CI_PROJECT_NAME
44+
# org: $CI_PROJECT_NAMESPACE
45+
# url: $CI_PROJECT_URL
46+
# user: "Barnabe"
47+
# git_branch: stable
48+
# manjaro_branch: stable

0 commit comments

Comments
 (0)