forked from Android-FW-Dumps/DumprX-CI
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.cirrus.yml
50 lines (42 loc) · 1.55 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
name: Firmware Dump
on:
workflow_dispatch:
env:
# Telegram
TG_CHAT: "@DumprXDumps"
TG_TOKEN: ENCRYPTED[5f547b09e09023988e0ea334b4328cd83bea8e4eb4389f2365eab389e0df620ae2a1c0555edc0f32801cd4c594f4e2b1]
# Gitlab
PUSH_TO_GITLAB: true
GITLAB_GROUP: Android-Dumps
GITLAB_TOKEN: ENCRYPTED[99ff1b55524206ae9db506d7ac7ffa41e359124579a5756632c53d486f1a5321ab4a4a3e1c7b86c42d598912a2edf33d]
# Private SSH Key
PRIV_SSH_KEY: ENCRYPTED[f089734f7284794ec3d78e4fb239fd4e5a9b4db19173fb406d17b1788af1b9cc50e6b4b5c0e439bd7b2bd9feced489a8]
task:
name: "Firmware Dump by DumprX"
only_if: $CIRRUS_REPO_OWNER == 'DumprX'
skip: $CIRRUS_BRANCH == 'main'
timeout_in: 120m
container:
image: ghcr.io/sushrut1101/docker:latest
cpu: 2
memory: 8G
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
- 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
- sudo bash setup.sh
DumprX_script:
- cd DumprX || echo "Already in the Directory"
- ./dumper.sh $(< ${CIRRUS_WORKING_DIR}/ROM_URL.txt)