diff --git a/.github/workflows/playground_deployment.yml b/.github/workflows/playground_deployment.yml index fb87828..2e838e6 100644 --- a/.github/workflows/playground_deployment.yml +++ b/.github/workflows/playground_deployment.yml @@ -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: uvl-playground@trash-mail.com on: push: @@ -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 @@ -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' \ No newline at end of file + run: ssh -i ~/.ssh/id_rsa $USERNAME@$HOSTNAME 'pwd && docker compose up --build -d'