Skip to content

Commit

Permalink
Merge branch 'master' of github.com:SoftVarE-Group/uvl-playground
Browse files Browse the repository at this point in the history
  • Loading branch information
st-vi committed Nov 10, 2023
2 parents 52b9ce0 + e8ee122 commit d2de5e8
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/playground_deployment.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
name: Deploy UVL Playground

env:
HOSTNAME: 590c9306-8ced-48f6-85f2-bb8caa1bfd52.ul.bw-cloud-instance.org
HOSTNAME: 9d29add1-1c00-4f93-a237-f66f8dab4353.ul.bw-cloud-instance.org
USERNAME: ubuntu
WORKDIR: /home/ubuntu
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
EMAIL: [email protected]

on:
push:
Expand All @@ -31,8 +32,11 @@ jobs:
- name: Set hostname for WebSocketLanguageServer
run: |
sed -i "s/languageServerHostName: .*/languageServerHostName: \"$HOSTNAME\",/" ./WebSocketClient/UVLPlayground/src/config.ts
sed -i "s/port: .*/port: 8010,/" ./WebSocketClient/UVLPlayground/src/config.ts
sed -i "s/debug: .*/debug: false,/" ./WebSocketClient/UVLPlayground/src/config.ts
- name: Set hostname mail for docker compose
run: |
echo "HOSTNAME=$HOSTNAME" > .env
echo "EMAIL=$EMAIL" >> .env
- name: Build
working-directory: WebSocketClient/UVLPlayground
run: npm run build
Expand All @@ -50,5 +54,6 @@ jobs:
scp -r ./WebSocketClient/UVLPlayground/dist $USERNAME@$HOSTNAME:$WORKDIR/WebSocketClient/UVLPlayground
scp -r ./WebSocketClient/UVLPlayground/Dockerfile $USERNAME@$HOSTNAME:$WORKDIR/WebSocketClient/UVLPlayground
scp -r ./docker-compose.yaml $USERNAME@$HOSTNAME:$WORKDIR
scp -r ./.env $USERNAME@$HOSTNAME:$WORKDIR
- name: Build and run containers
run: ssh -i ~/.ssh/id_rsa $USERNAME@$HOSTNAME 'pwd && docker compose up --build -d'
run: ssh -i ~/.ssh/id_rsa $USERNAME@$HOSTNAME 'pwd && docker compose up --build -d'

0 comments on commit d2de5e8

Please sign in to comment.