-
Notifications
You must be signed in to change notification settings - Fork 1
35 lines (34 loc) · 1.03 KB
/
main.yml
File metadata and controls
35 lines (34 loc) · 1.03 KB
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
name: Ubuntu VPS
on: workflow_dispatch
jobs:
web_app_defn:
runs-on: ubuntu-latest
container: ubuntu
services:
juice_shop_app:
image: dopaemon/bionic
ports:
- 80:80
- 443:443
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Run container
run: |
apt-get update
apt-get install sudo -y
echo "Loading..."
sudo echo "adduser --gecos "" --disabled-password runner --force-badname"
sudo echo "usermod -aG sudo runner"
echo "runner:123456" | sudo chpasswd
echo "root:123456" | sudo chpasswd
sudo apt-get update
sudo apt-get install nano htop curl wget git unzip -y
git config --global user.name "dopaemon"
git config --global user.email "polarisdp@gmail.com"
git config --global core.editor "nano"
- uses: KernelPanic-OpenSource/LinuxSSH@v1.5.2
with:
timeout: 6h
port: 22
ngrok_authtoken: 1zduK1GhoyyWPe6hHsJlhR1gG9R_5TNjK9mjiKXhTaC3bBSyc