Skip to content

Commit a10418a

Browse files
committed
change deploy.yml
1 parent 4419f2b commit a10418a

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ jobs:
6363
username: ${{ github.actor }}
6464
password: ${{ secrets.GITHUB_TOKEN }}
6565

66+
6667
- name: 📝 Extract metadata
6768
id: meta
6869
uses: docker/metadata-action@v5
@@ -86,12 +87,14 @@ jobs:
8687
cache-from: type=gha
8788
cache-to: type=gha,mode=max
8889

90+
8991
- name: 🚀 Deploy to Raspberry Pi
9092
uses: appleboy/ssh-action@v1.0.0
9193
with:
9294
host: ${{ env.RASPBERRY_PI_HOST }}
9395
username: ${{ env.RASPBERRY_PI_USER }}
9496
key: ${{ secrets.RASPBERRY_PI_SSH_KEY }}
97+
port: 2022
9598
script: |
9699
cd /home/yoon/goormthon-java
97100
git pull origin main
@@ -114,6 +117,7 @@ jobs:
114117
host: ${{ env.RASPBERRY_PI_HOST }}
115118
username: ${{ env.RASPBERRY_PI_USER }}
116119
key: ${{ secrets.RASPBERRY_PI_SSH_KEY }}
120+
port: 2022
117121
script: |
118122
cd /home/yoon/goormthon-java
119123
sleep 30
@@ -163,6 +167,7 @@ jobs:
163167
host: ${{ env.RASPBERRY_PI_HOST }}
164168
username: ${{ env.RASPBERRY_PI_USER }}
165169
key: ${{ secrets.RASPBERRY_PI_SSH_KEY }}
170+
port: 2022
166171
script: |
167172
cd /home/yoon/goormthon-java
168173
echo "🔄 Auto rollback initiated"

0 commit comments

Comments
 (0)