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