-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain-old.yml
More file actions
47 lines (47 loc) · 1.25 KB
/
main-old.yml
File metadata and controls
47 lines (47 loc) · 1.25 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
36
37
38
39
40
41
42
43
44
45
46
47
#name: CI
#
#on:
# push:
# branches: [production]
#
#jobs:
# build:
# runs-on: ubuntu-latest
#
# steps:
# - name: Checkout code
# uses: actions/checkout@v2
#
# - name: Setup JDK 17
# uses: actions/setup-java@v2
# with:
# java-version: 17
# distribution: adopt
#
# # temporarily skipping tests because of time constraints on debugging.
# # test commit 2
# - name: Build with Maven
# run: |
# sudo apt-get update
# sudo apt-get install -y maven
# mvn clean package -DskipTests
#
# # - name: Run tests (temporarily bypassing tests)
#
# - name: Deploy to server
# uses: appleboy/ssh-action@master
# with:
# host: ${{ secrets.SERVER_HOST }}
# username: ${{ secrets.SERVER_USERNAME }}
# key: ${{ secrets.SERVER_KEY }}
# script: |
# ssh-keyscan ${{ secrets.SERVER_HOST }} >> ~/.ssh/known_hosts
# set -e
# cd /usr/src/app/code-lms-backend
# sudo git pull origin production
# sudo mvn clean package -DskipTests
# sudo systemctl restart code-compiler-exe
# sudo systemctl status code-compiler-exe
# echo "Deployment successful!"
#
#