File tree Expand file tree Collapse file tree 1 file changed +27
-27
lines changed
Expand file tree Collapse file tree 1 file changed +27
-27
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments