forked from DumprX/DumprX-CI-Bot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.cirrus.yml
50 lines (43 loc) · 1.7 KB
/
.cirrus.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
49
50
env:
# Telegram
TG_CHAT: "@DumprXDumps"
TG_TOKEN: ENCRYPTED[a73a53b94a14e3cb110744a6edd108475494c5eff22d1881b407ae09d6a4fef90e8579a1b8f8a7286a9452c081f94894]
# Gitlab
PUSH_TO_GITLAB: true
GITLAB_GROUP: DumprX
GITLAB_TOKEN: ENCRYPTED[9df452a061a97524a9994517e5fc5bbc4ebbb62aff325ec486ae4395276ba8561ca921bcd0dac76c0f2edff77808b6d8]
GITLAB_INSTANCE: www.opencode.net
# Private SSH Key
PRIV_SSH_KEY: ENCRYPTED[6642ded05f455c0aec06fb52c7c7c9981de3d199832ca90b8270392a3b2784a77c34922104b79c4b2312b16de6e0b055]
task:
name: "Firmware Dump by DumprX"
only_if: $CIRRUS_REPO_OWNER == 'DumprX'
skip: $CIRRUS_BRANCH == 'main'
auto_cancellation: $CIRRUS_BRANCH == 'autocancel'
timeout_in: 120m
container:
image: ghcr.io/sushrut1101/docker:arch
cpu: 4
memory: 16G
Clone_script:
- git clone --depth=1 --single-branch https://github.com/DumprX/DumprX.git
Set-SSH-Keys_script:
- mkdir -p ~/.ssh
- ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts
- ssh-keyscan -t rsa gitlab.com >> ~/.ssh/known_hosts
- ssh-keyscan -t rsa $GITLAB_INSTANCE >> ~/.ssh/known_hosts
- echo "$PRIV_SSH_KEY" > ~/.ssh/id_rsa
- chmod 600 ~/.ssh/id_rsa
Setup_script:
- git config --global user.name "Sushrut1101"
- git config --global user.email "[email protected]"
- cd DumprX
- echo "$GITLAB_TOKEN" > .gitlab_token
- echo "$GITLAB_GROUP" > .gitlab_group
- echo "$TG_CHAT" > .tg_chat
- echo "$TG_TOKEN" > .tg_token
- echo "$GITLAB_INSTANCE" > .gitlab_instance
- sudo bash setup.sh
DumprX_script:
- cd DumprX || echo "Already in the Directory"
- ./dumper.sh $(< ${CIRRUS_WORKING_DIR}/ROM_URL.txt)