This commit is contained in:
22
.gitea/workflows/deploy.yaml
Normal file
22
.gitea/workflows/deploy.yaml
Normal file
@@ -0,0 +1,22 @@
|
||||
name: Deploy LAMP
|
||||
run-name: ${{ gitea.actor }} is deploying to PROD servers.
|
||||
on: [ push, fork, pull ]
|
||||
|
||||
jobs:
|
||||
Deploy LAMP:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Check out repository code
|
||||
uses: actions/checkout@v4
|
||||
- name: SSH to remote server
|
||||
uses: appleboy/ssh-action@v1.0.3
|
||||
with:
|
||||
host: ${{ secrets.HOST }}
|
||||
username: ${{ secrets.USERNAME }}
|
||||
password: ${{ secrets.PASSWORD }}
|
||||
port: ${{ secrets.PORT }}
|
||||
script: |
|
||||
cd /docker/lamp/
|
||||
git pull
|
||||
docker compose up -d --build
|
||||
- run: echo "🍏 This job's status is ${{ job.status }}."
|
||||
Reference in New Issue
Block a user