Skip to content

Commit 0a20a53

Browse files
committed
Disable deploy.
1 parent df6f975 commit 0a20a53

File tree

1 file changed

+27
-27
lines changed

1 file changed

+27
-27
lines changed

.github/workflows/deploy.yml

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,31 @@
1-
name: Deploy recently submitted code into VPS
1+
# name: Deploy recently submitted code into VPS
22

3-
on:
4-
push:
5-
branches: [ "main" ]
6-
pull_request:
7-
branches: [ "main" ]
3+
# on:
4+
# push:
5+
# branches: [ "main" ]
6+
# pull_request:
7+
# branches: [ "main" ]
88

9-
jobs:
9+
# jobs:
1010

11-
check-build:
12-
name: Check if app is built into container successfully
13-
runs-on: ubuntu-latest
14-
steps:
15-
- uses: actions/checkout@v3
16-
- run: cd app && docker build . --file Dockerfile
11+
# check-build:
12+
# name: Check if app is built into container successfully
13+
# runs-on: ubuntu-latest
14+
# steps:
15+
# - uses: actions/checkout@v3
16+
# - run: cd app && docker build . --file Dockerfile
1717

18-
deploy:
19-
name: Deploy app into VPS
20-
needs: check-build
21-
runs-on: ubuntu-latest
22-
steps:
23-
- name: Install SSH keys
24-
run: |
25-
install -m 600 -D /dev/null ~/.ssh/id_rsa
26-
echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa
27-
ssh-keyscan -H ${{ secrets.SSH_HOST }} > ~/.ssh/known_hosts
28-
- name: Connect and deploy
29-
run: ssh ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }} "cd /home/count-account && git pull --no-rebase && docker compose down -v && docker compose up -d --build"
30-
- name: Cleanup
31-
run: rm -rf ~/.ssh
18+
# deploy:
19+
# name: Deploy app into VPS
20+
# needs: check-build
21+
# runs-on: ubuntu-latest
22+
# steps:
23+
# - name: Install SSH keys
24+
# run: |
25+
# install -m 600 -D /dev/null ~/.ssh/id_rsa
26+
# echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa
27+
# ssh-keyscan -H ${{ secrets.SSH_HOST }} > ~/.ssh/known_hosts
28+
# - name: Connect and deploy
29+
# run: ssh ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }} "cd /home/count-account && git pull --no-rebase && docker compose down -v && docker compose up -d --build"
30+
# - name: Cleanup
31+
# run: rm -rf ~/.ssh

0 commit comments

Comments
 (0)