Skip to content

Commit f26f527

Browse files
committed
feat: added new deployment system
1 parent f4239f4 commit f26f527

File tree

1 file changed

+7
-17
lines changed

1 file changed

+7
-17
lines changed

.github/workflows/deploy.yml

Lines changed: 7 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,32 +2,22 @@ name: Deploy
22

33
on:
44
push:
5-
branches:
5+
branches:
66
- 'main'
77

88
jobs:
99
build:
10-
1110
runs-on: ubuntu-latest
1211

1312
steps:
14-
- uses: actions/checkout@v1
15-
16-
- name: Copy repository contents via scp
17-
uses: appleboy/scp-action@master
18-
with:
19-
host: ${{ secrets.HOST }}
20-
username: ${{ secrets.USERNAME }}
21-
port: ${{ secrets.PORT }}
22-
key: "${{ secrets.SSHKEY }}"
23-
source: "."
24-
target: "${{ secrets.PATH }}"
25-
26-
- name: Executing remote command
27-
uses: appleboy/ssh-action@v1.0.3
13+
- name: Executing remote deploy commands
14+
uses: appleboy/ssh-action@v1.2.2
2815
with:
2916
host: ${{ secrets.HOST }}
3017
username: ${{ secrets.USERNAME }}
3118
port: ${{ secrets.PORT }}
3219
key: ${{ secrets.SSHKEY }}
33-
script: ${{ secrets.SCRIPT }}
20+
script: |
21+
cd webs/femtolink.jaumelopez.dev
22+
git pull
23+
docker compose up -d --build

0 commit comments

Comments
 (0)