-
-
Notifications
You must be signed in to change notification settings - Fork 9
66 lines (65 loc) · 1.87 KB
/
venus.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: venus
on:
workflow_dispatch:
pull_request:
jobs:
docker:
runs-on: ubuntu-latest
container:
image: victronenergy/venus-docker
options: --cpus 1
steps:
- name: Set branch name
id: set_branch
run: echo "BRANCH_NAME=${GITHUB_HEAD_REF}" >> $GITHUB_ENV
- name: Checkout code
uses: actions/checkout@v3
- name: Check for dockerenv file
run: (ls /.dockerenv && echo Found dockerenv) || (echo No dockerenv)
- name: Install more UNIX tools
run: |
if which apt > /dev/null
then
apt update
apt -y install wget curl cron
elif which opkg > /dev/null
then
opkg install wget
opkg install curl
else
echo "W: Tests limited because of non-avail of wget and curl"
fi
- name: Set script permissions
run: chmod +x ./victron-venus-os-install.sh
- name: Execute Installation under Venus OS
run: |
echo pwd
pwd
echo ls
ls
echo "BRANCH = ${{ env.BRANCH_NAME }}"
echo victron-venus-os-install.sh
if ./victron-venus-os-install.sh ; then
echo "[OK]"
else
echo "[FAIL]"
pwd
HEAD_PATH=$(which head)
find . | $HEAD_PATH -n 30
exit 1
fi
env:
NO_REBOOT: 1
DEBUG: 1
BRANCH: ${{ env.BRANCH_NAME }}
ACTOR: ${{ github.actor }}
- name: Execute Run-Script under Venus OS
run: /data/etc/Spotmarket-Switcher/service/run
env:
DEBUG: 1
- name: Execute Control-Script under Venus OS
run: |
bash scripts/controller.sh #/data/etc/Spotmarket-Switcher/controller.sh
env:
DEBUG: 1
CONFIG: sample.config.txt