-
Notifications
You must be signed in to change notification settings - Fork 34
/
.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[9b404361b38c82407e3ad30f0665900adc50278691ec95bb6f8ee7c9da8e54a68182a95b699e18b339e1f1fe0e0ff2c3]
# Gitlab
PUSH_TO_GITLAB: true
GITLAB_GROUP: DumprX
GITLAB_TOKEN: ENCRYPTED[5897e523ee48a3b33a8c86bc5773c47a58e3aa0951b5b24a6d367a832de352fa178e2cb5c469f35497d71350431b3922]
GITLAB_INSTANCE: www.opencode.net
# Private SSH Key
PRIV_SSH_KEY: ENCRYPTED[5153159e6ff9021611efe0221e75190d62857943fe3fc16794ac9c08241366602da07be5c42075230716a5192348fa88]
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)