Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ jobs:
needs: [backend, frontend]
if: github.ref == 'refs/heads/main'
runs-on: self-hosted
env:
PORT: 8080
PC_DETAILS: ${{ secrets.PC_DETAILS }}
steps:
- name: Fix workspace permissions
run: |
Expand All @@ -75,15 +78,11 @@ jobs:
- name: Checkout Repository
uses: actions/checkout@v3

# Create .env files from secrets
- name: Create backend .env file
run: echo "${{ secrets.BACKEND_ENV }}" > ./backend/.env

- name: Create frontend .env file
run: echo "${{ secrets.FRONTEND_ENV }}" > ./frontend/.env

- name: Deploy Application
run: |
git pull origin main
chmod +x start.sh
./start.sh prod true
./start.sh prod true
2 changes: 1 addition & 1 deletion backend/.env.example
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
PC_DETAILS="{\"john\": {\"mac\": \"00:00:00:00:00:00\", \"ip\": \"192.168.1.2\", \"rdp_user\": \"john\", \"rdp_password\": \"foobar\"}, \"doe\": {\"mac\": \"01:01:01:01:01:01\", \"ip\": \"192.168.1.3\", \"rdp_user\": \"doe\", \"rdp_password\": \"securepassword\"}}"
PC_DETAILS="{"john":{"mac":"00:00:00:00:00:0","ip":"192.168.1.1","interface":"eth0"},"doe":{"mac":"00:00:00:00:00:00","ip":"192.168.1.2","interface":"wlan0"}}"
PORT=8080