File tree Expand file tree Collapse file tree 1 file changed +1
-13
lines changed Expand file tree Collapse file tree 1 file changed +1
-13
lines changed Original file line number Diff line number Diff line change 31
31
steps :
32
32
- name : Checkout code
33
33
uses : actions/checkout@v4.1.1
34
- - name : Copy infra files to server
35
- uses : appleboy/scp-action@master
36
- with :
37
- host : ${{ secrets.HOST }}
38
- username : ${{ secrets.USER }}
39
- key : ${{ secrets.SSH_KEY }}
40
- passphrase : ${{ secrets.PASSPHRASE }}
41
- source : " cppinfra/docker-compose.yml"
42
- target : ${{ secrets.DEPLOY_PATH }}
43
- overwrite : true
44
- strip_components : 1
45
34
46
35
- name : executing remote ssh commands to deploy
47
36
uses : appleboy/ssh-action@master
51
40
key : ${{ secrets.SSH_KEY }}
52
41
passphrase : ${{ secrets.PASSPHRASE }}
53
42
script : |
54
- touch .env
55
43
cd ${{ secrets.DEPLOY_PATH }}
56
44
echo "BOT_TOKEN=${{ secrets.BOT_TOKEN }}" > .env
57
45
echo POSTGRES_USER=${{ secrets.POSTGRES_USER }} >> .env
68
56
sudo docker compose up -d --build
69
57
sudo docker system prune -af
70
58
71
-
59
+
72
60
send_message :
73
61
runs-on : ubuntu-latest
74
62
needs : deploy
You can’t perform that action at this time.
0 commit comments