-
Notifications
You must be signed in to change notification settings - Fork 114
/
.cirrus.yml
52 lines (45 loc) · 1.74 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
51
52
env:
# Telegram
TG_CHAT: "@DumprXDumps"
TG_TOKEN: ENCRYPTED[d97b38fc916f5b418bdee35179170de5a921ccc7aef4bbdf33548a75cdb5e874cfeef6e4869526dd4ebf308a9fcdd2df]
# Gitlab
PUSH_TO_GITLAB: true
GITLAB_GROUP: DumprX
GITLAB_TOKEN: ENCRYPTED[4bf13a08acf30d4738403638464ea7c1ba3f5d157db84b9fbdac0ec0ab2b347dc89895ecabf01a36f37c6e87dff8d428]
GITLAB_INSTANCE: gitlab.taiao.ai
# Private SSH Key
PRIV_SSH_KEY: ENCRYPTED[0767bc608a75b9133cdf027bf29c05e405e794fbd133dd0da75e5b83f6983df4550dc95bb5e9d19371c8df543bc9a1e1]
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
privileged: true
cpu: 4
memory: 16G
Clone_script:
- git clone --depth=1 --single-branch https://github.com/DumprX/DumprX.git ~/DumprX
Set-SSH-Keys_script:
- mkdir -p ~/.ssh
- ssh-keyscan -H github.com >> ~/.ssh/known_hosts
- ssh-keyscan -H gitlab.com >> ~/.ssh/known_hosts
- ssh-keyscan -H "${GITLAB_INSTANCE}" >> ~/.ssh/known_hosts
- echo "${PRIV_SSH_KEY}" > ~/.ssh/id_ed25519
- chmod 600 ~/.ssh/id_ed25519
Setup_script:
- git config --global user.name "Sushrut1101"
- git config --global user.email "guptasushrut@gmail.com"
- git config --global color.ui auto
- 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
- bash setup.sh
DumprX_script:
- cd ~/DumprX
- ./dumper.sh $(cat ${CIRRUS_WORKING_DIR}/ROM_URL.txt)