Skip to content

Commit 17a2466

Browse files
authored
Update schedule.yml
1 parent c24d25f commit 17a2466

1 file changed

Lines changed: 19 additions & 19 deletions

File tree

.github/workflows/schedule.yml

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
name: Deploy to remote server
1+
# name: Deploy to remote server
22

3-
on:
4-
schedule:
5-
- cron: 0 */6 * * *
3+
# on:
4+
# schedule:
5+
# - cron: 0 */6 * * *
66

7-
jobs:
8-
deploy:
9-
runs-on: ubuntu-latest
10-
steps:
11-
- name: Deploy Docker Image
12-
uses: appleboy/ssh-action@master
13-
with:
14-
host: ${{ secrets.HOST }}
15-
username: ${{ secrets.SSH_USER }}
16-
key: ${{ secrets.SSH_KEY }}
17-
command_timeout: 10m
18-
script: |
19-
docker pull cjbi/admin3:latest
20-
docker rm -f admin3 || true
21-
docker run -p 8082:8080 -e JAVA_OPTS="-Dserver.servlet.context-path=/ -Dfile.encoding=UTF-8 -Duser.timezone=GMT+8 -Dspring.jpa.hibernate.ddl-auto=create -Dspring.datasource.url=${{ secrets.DS_JDBC_URL }} -Dspring.datasource.username=${{ secrets.DS_USERNAME }} -Dspring.datasource.password=${{ secrets.DS_PASSWORD }}" -d --name admin3 cjbi/admin3:latest
7+
# jobs:
8+
# deploy:
9+
# runs-on: ubuntu-latest
10+
# steps:
11+
# - name: Deploy Docker Image
12+
# uses: appleboy/ssh-action@master
13+
# with:
14+
# host: ${{ secrets.HOST }}
15+
# username: ${{ secrets.SSH_USER }}
16+
# key: ${{ secrets.SSH_KEY }}
17+
# command_timeout: 10m
18+
# script: |
19+
# docker pull cjbi/admin3:latest
20+
# docker rm -f admin3 || true
21+
# docker run -p 8082:8080 -e JAVA_OPTS="-Dserver.servlet.context-path=/ -Dfile.encoding=UTF-8 -Duser.timezone=GMT+8 -Dspring.jpa.hibernate.ddl-auto=create -Dspring.datasource.url=${{ secrets.DS_JDBC_URL }} -Dspring.datasource.username=${{ secrets.DS_USERNAME }} -Dspring.datasource.password=${{ secrets.DS_PASSWORD }}" -d --name admin3 cjbi/admin3:latest

0 commit comments

Comments
 (0)