forked from pwnlandia/mhn
-
Notifications
You must be signed in to change notification settings - Fork 1
52 lines (43 loc) · 1.37 KB
/
ubuntu2004.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
name: Ubuntu 20.04
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches:
- master
pull_request:
branches:
- master
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
install-mhn-dependencies:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Clone latest MHN
run: |
cd /opt/
sudo git clone https://github.com/pwnlandia/mhn.git
- name: Install MHN dependencies
run: |
sudo apt update && sudo apt upgrade -y
sudo apt install -y python-pip
sudo pip install --upgrade pip
sudo apt install apt-transport-https -y
sudo apt install build-essential -y
sudo apt remove mongo* -y
# Default mongodb install needs to be removed:
# https://github.com/actions/virtual-environments/blob/main/images/linux/Ubuntu1804-README.md#databases
- name: Install hpfeeds
run: |
cd /opt/mhn/scripts/
sudo ./install_hpfeeds.sh
- name: Install mnemosyne
run: |
cd /opt/mhn/scripts/
sudo ./install_mnemosyne.sh
- name: Install honeymap
run: |
cd /opt/mhn/scripts/
sudo ./install_honeymap.sh